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/orxonox/gamestates/GSGraphics.h

    r2756 r2797  
    3232#include "OrxonoxPrereqs.h"
    3333#include <OgrePrerequisites.h>
    34 #define NOMINMAX // required to stop windows.h screwing up std::min definition
     34#ifndef NOMINMAX
     35#  define NOMINMAX // required to stop windows.h screwing up std::min definition
     36#endif
    3537#include <OgreWindowEventUtilities.h>
    3638#include "core/GameState.h"
Note: See TracChangeset for help on using the changeset viewer.