Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 17, 2009, 10:53:53 PM (15 years ago)
Author:
landauf
Message:

Added some #ifndef's around #define NOMINMAX and #define FORCEINLINE to avoid "symbol redefined" compiler-warnings.

Reto, I hope this doesn't cause any troubles. If it does, I suggest using "#undef symbolname" instead of "#ifndef symbolname". This should then work basically as before, but without warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/OrxonoxConfig.h.in

    r2761 r2797  
    8585/* See if we can use __forceinline or if we need to use __inline instead */
    8686#cmakedefine HAVE_FORCEINLINE
    87 #ifdef HAVE_FORCEINLINE
    88 #  define FORCEINLINE __forceinline
    89 #else
    90 #  define FORCEINLINE __inline
     87#ifndef FORCEINLINE
     88#  ifdef HAVE_FORCEINLINE
     89#    define FORCEINLINE __forceinline
     90#  else
     91#    define FORCEINLINE __inline
     92#  endif
    9193#endif
    9294
Note: See TracChangeset for help on using the changeset viewer.