Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2009, 4:06:31 PM (15 years ago)
Author:
rgrieder
Message:

Removed all enet and boost includes from header files in the network library.

  • Reduces dependencies
  • Minimises problems with windows.h
  • Speeds up the compiling process a little bit (probably negligible)
  • Also removes ugly WIN32_LEAN_AND_MEAN declarations before every enet.h include in the network library.

Removed windows.h header from util/Sleep.h by adding Sleep.cc

File:
1 edited

Legend:

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

    r2756 r2773  
    4343#include "NetworkPrereqs.h"
    4444
    45 #ifndef WIN32_LEAN_AND_MEAN
    46 #  define WIN32_LEAN_AND_MEAN
    47 #endif
    48 #define NOMINMAX // required to stop windows.h screwing up std::min definition
    49 #include <enet/enet.h>
    50 #include <boost/thread/recursive_mutex.hpp>
    51 
    52 
    5345// WATCH OUT: THE CLIENTINFORMATION LIST IS NOT THREADSAFE ANYMORE
    5446
     
    8779    void addFailure();
    8880    void resetFailures();
    89     enet_uint32 getRTT();
     81    uint32_t getRTT();
    9082    double getPacketLoss();
    9183
Note: See TracChangeset for help on using the changeset viewer.