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.

Location:
code/trunk/src/orxonox/gamestates
Files:
2 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"
  • code/trunk/src/orxonox/gamestates/GSRoot.cc

    r2759 r2797  
    4949#    define WIN32_LEAN_AND_MEAN
    5050#  endif
    51 #  define NOMINMAX // required to stop windows.h screwing up std::min definition
     51#  ifndef NOMINMAX
     52#    define NOMINMAX // required to stop windows.h screwing up std::min definition
     53#  endif
    5254#  include "windows.h"
    5355#endif
Note: See TracChangeset for help on using the changeset viewer.