@@ -25,7 +25,7 @@
#ifdef WIN32_VC
#include "numeric_types.h"
-
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
////////////////////////////////////////////////////////////////////
@@ -23,7 +23,7 @@
#include "selectThreadImpl.h"
@@ -32,6 +32,7 @@
#endif
#ifdef WIN_PIPE_CALLS
#else // WIN_PIPE_CALLS
@@ -20,6 +20,7 @@
#include "config_express.h"
#ifdef _WIN32
#include <windows.h> // for IsBadWritePtr()
@@ -24,7 +24,7 @@
#include <stdio.h>
#if defined(WIN32_VC)
- #include <winsock.h>
+ #include <winsock2.h>
@@ -34,6 +34,7 @@ TrueClock *TrueClock::_global_ptr = NULL;
#include <sys/timeb.h>
static const double _0001 = 1.0 / 1000.0;
@@ -21,7 +21,7 @@
#include "textEncoder.h"
@@ -40,6 +40,7 @@
// Must include windows.h before gl.h on NT
#include "mutexHolder.h"
-#include <winsock.h> // For gethostname()
+#include <winsock2.h> // For gethostname()
@@ -29,6 +29,7 @@
#include "mutexWin32Impl.h"
#include "conditionVarWin32Impl.h"
+#define WIN32_LEAN_AND_MEAN 1
class Thread;
@@ -28,6 +28,7 @@
#include "pnmWriter.h"
#if defined(_WIN32)
#include <windows.h> // we need to include this before jpeglib.
@@ -26,7 +26,7 @@
// This must be included after we have included glgsg.h (which
// includes gl.h).
#include "wglext.h"
@@ -21,8 +21,8 @@
#ifdef HAVE_DX8
#include <d3d8.h>
#include "graphicsStateGuardian.h"
#include "graphicsPipe.h"
#include "displaySearchParameters.h"
@@ -21,13 +21,12 @@
#ifdef HAVE_DX9
#include <d3d9.h>
#define DX8 0
#define Direct3DCreate Direct3DCreate9
#include "pandabase.h"
#include "graphicsWindow.h"
class WinGraphicsPipe;