Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 17, 2009, 10:53:53 PM (16 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/orxonox/pch/havepch/OrxonoxStableHeaders.h

    r2756 r2797  
    4545#  define WIN32_LEAN_AND_MEAN
    4646#endif
    47 #define NOMINMAX // required to stop windows.h screwing up std::min definition
     47#ifndef NOMINMAX
     48#  define NOMINMAX // required to stop windows.h screwing up std::min definition
     49#endif
    4850#include <Ogre.h>
    4951#include <CEGUI.h>
Note: See TracChangeset for help on using the changeset viewer.