win-stats: Define WIN32_LEAN_AND_MEAN before including windows.h
This prevents pulling in winsock 1, which will cause compiler errors when p3net later tries to pull in winsock 2.
This commit is contained in:
parent
4f94b3aa0e
commit
ff06135412
|
|
@ -16,6 +16,9 @@
|
|||
#include "winStatsServer.h"
|
||||
#include "config_pstatclient.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
static const char *toplevel_class_name = "pstats";
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
|
||||
#include "pandatoolbase.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsMonitor;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@
|
|||
#include "winStatsLabelStack.h"
|
||||
#include "pmap.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsMonitor;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
|
||||
#include "pandatoolbase.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsMonitor;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@
|
|||
#include "pandatoolbase.h"
|
||||
#include "pvector.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsLabel;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@
|
|||
#include "pvector.h"
|
||||
#include "pmap.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsServer;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
#include "pStatPianoRoll.h"
|
||||
#include "pointerTo.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsMonitor;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
#include "pStatStripChart.h"
|
||||
#include "pointerTo.h"
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
class WinStatsMonitor;
|
||||
|
|
|
|||
Loading…
Reference in New Issue