Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 8, 2009, 1:24:15 PM (15 years ago)
Author:
rgrieder
Message:

Minimising problems when including windows.h because it defines macros like "min" and "max" if not explicitly specified.
There are two headers we use that include windows.h: OgreWindowEventUtilities.h and enet.h. I had to tweak a little bit there as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/ConnectionManager.h

    r2171 r2756  
    4646#include <map>
    4747// enet library for networking support
     48#ifndef WIN32_LEAN_AND_MEAN
     49#  define WIN32_LEAN_AND_MEAN
     50#endif
     51#define NOMINMAX // required to stop windows.h screwing up std::min definition
    4852#include <enet/enet.h>
    4953#include <boost/thread/recursive_mutex.hpp>
Note: See TracChangeset for help on using the changeset viewer.