Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 8, 2009, 1:24:15 PM (16 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.

Location:
code/trunk/src/network/packet
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/packet/DeleteObjects.cc

    r2662 r2756  
    2929
    3030#include "DeleteObjects.h"
     31#ifndef WIN32_LEAN_AND_MEAN
     32#  define WIN32_LEAN_AND_MEAN
     33#endif
     34#define NOMINMAX // required to stop windows.h screwing up std::min definition
    3135#include <enet/enet.h>
    3236#include "network/synchronisable/Synchronisable.h"
  • code/trunk/src/network/packet/Packet.cc

    r2710 r2756  
    3131
    3232#include <cassert>
     33#ifndef WIN32_LEAN_AND_MEAN
     34#  define WIN32_LEAN_AND_MEAN
     35#endif
     36#define NOMINMAX // required to stop windows.h screwing up std::min definition
    3337#include <enet/enet.h>
    3438#include <boost/bind.hpp>
  • code/trunk/src/network/packet/Packet.h

    r2710 r2756  
    3232
    3333#include <map>
     34#ifndef WIN32_LEAN_AND_MEAN
     35#  define WIN32_LEAN_AND_MEAN
     36#endif
     37#define NOMINMAX // required to stop windows.h screwing up std::min definition
    3438#include <enet/enet.h>
    3539#include <boost/thread/recursive_mutex.hpp>
Note: See TracChangeset for help on using the changeset viewer.