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:
Sam Edwards 2019-03-18 00:29:55 -06:00
parent 4f94b3aa0e
commit ff06135412
8 changed files with 24 additions and 0 deletions

View File

@ -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";

View File

@ -16,6 +16,9 @@
#include "pandatoolbase.h"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
class WinStatsMonitor;

View File

@ -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;

View File

@ -16,6 +16,9 @@
#include "pandatoolbase.h"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
class WinStatsMonitor;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;