Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3212


Ignore:
Timestamp:
Jun 23, 2009, 3:45:04 PM (16 years ago)
Author:
rgrieder
Message:

Refined PCH files a bit.

Location:
code/branches/netp5/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp5/src/core/Core.cc

    r3196 r3212  
    4747#  endif
    4848#  include <windows.h>
     49#  undef min
     50#  undef max
    4951#elif defined(ORXONOX_PLATFORM_APPLE)
    5052#  include <sys/param.h>
  • code/branches/netp5/src/core/CorePrecompiledHeaders.h

    r3196 r3212  
    3535#include "CorePrereqs.h"
    3636
     37#include <cassert>
    3738#include <fstream>
    3839#include <iostream>
    3940#include <list>
     41#include <locale>
    4042#include <map>
     43#include <queue>
    4144#include <set>
    4245#include <sstream>
     46#include <stack>
    4347#include <string>
    4448#include <vector>
     
    4751#ifdef ORXONOX_COMPILER_MSVC
    4852
    49 #define WIN32_LEAN_AND_MEAN
    50 #include <windows.h>
     53#include <OgreMath.h>
     54#include <OgreVector2.h>
     55#include <OgreVector3.h>
     56#include <OgreVector4.h>
     57#include <OgreQuaternion.h>
     58#include <OgreColourValue.h>
     59
     60#include <boost/shared_ptr.hpp> // 12
     61#include <boost/preprocessor/cat.hpp> // 12
     62// Included by both filesystem and thread but still relatively small
     63#include <boost/iterator/iterator_facade.hpp> // 10
     64
     65// Just in case some header included windows.h
     66#undef min
    5167#undef max
    52 #undef min
    53 
    54 #include <ois/OISKeyboard.h>
    55 #include <ois/OISMouse.h>
    56 #include <ois/OISJoyStick.h>
    57 #include <tinyxml/ticpp.h>
    58 // Included by both filesystem and thread but still relatively small
    59 #include <boost/iterator/iterator_facade.hpp>
    6068
    6169#endif /* ORXONOX_COMPILER_MSVC */
    6270
    6371
    64 #include "util/Convert.h"
    6572#include "util/Debug.h"
    66 #include "util/Exception.h"
    6773#include "util/Math.h"
    68 #include "util/mbool.h"
    6974#include "util/MultiType.h"
    70 #include "util/OrxAssert.h"
    71 #include "util/OrxEnum.h"
    72 #include "util/String.h"
    7375#include "util/SubString.h"
    7476
  • code/branches/netp5/src/orxonox/OrxonoxPrecompiledHeaders.h

    r3196 r3212  
    3535#include "OrxonoxPrereqs.h"
    3636
     37#include <cassert>
    3738#include <deque>
    3839#include <fstream>
     
    8485#include "util/Math.h"
    8586#include "util/OgreForwardRefs.h"
    86 #include "util/OrxAssert.h"
    87 #include "util/String.h"
    8887#include "util/SubString.h"
    8988
  • code/branches/netp5/src/util/Clipboard.cc

    r3196 r3212  
    4242/////////////
    4343
     44#ifndef WIN32_LEAN_AND_MEAN
     45#  define WIN32_LEAN_AND_MEAN
     46#endif
    4447#include <windows.h>
     48#undef min
     49#undef max
    4550#include "Debug.h"
    4651
  • code/branches/netp5/src/util/Math.h

    r3196 r3212  
    4747#include <OgreColourValue.h>
    4848
    49 // Certain headers might define min and max macros
    50 #if defined(max) || defined(min) || defined(sgn) || defined(clamp) || defined(square) || defined(mod)
    51 #  error An inline math function was overridden by a macro
    52 #endif
     49// Certain headers might define unwanted macros...
     50#undef max
     51#undef min
     52#undef sgn
     53#undef clamp
     54#undef sqrt
     55#undef square
     56#undef mod
     57#undef rnd
    5358
    5459namespace orxonox
  • code/branches/netp5/src/util/Sleep.cc

    r3196 r3212  
    3737
    3838#ifdef ORXONOX_PLATFORM_WINDOWS
     39#ifndef WIN32_LEAN_AND_MEAN
     40#  define WIN32_LEAN_AND_MEAN
     41#endif
    3942#include <windows.h>
     43#undef min
     44#undef max
    4045
    4146namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.