2
0
David Rose 15 жил өмнө
parent
commit
1fe3638a1f

+ 1 - 1
panda/src/display/customGraphicsWindowProc.cxx

@@ -26,7 +26,7 @@ CustomGraphicsWindowProc::~CustomGraphicsWindowProc(){
   Py_DECREF(_handler);
 }
 
-#if defined(__WIN32__) || defined(_WIN32)
+#ifdef WIN32
 LONG CustomGraphicsWindowProc::wnd_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam){
   PyObject* ret = PyObject_CallFunction(_handler, "IIII", hwnd, msg, wparam, lparam);
   Py_XDECREF(ret);

+ 1 - 1
panda/src/display/customGraphicsWindowProc.h

@@ -23,7 +23,7 @@ public:
   CustomGraphicsWindowProc(PyObject* handler, PyObject* name);
   virtual ~CustomGraphicsWindowProc();
 
-#if defined(__WIN32__) || defined(_WIN32)
+#ifdef WIN32
   virtual LONG wnd_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
 #endif
 

+ 6 - 6
panda/src/display/graphicsWindowProc.h

@@ -19,11 +19,11 @@
 #include "pandabase.h"
 #include "typedReferenceCount.h"
 
-#if defined(__WIN32__) || defined(_WIN32)
-	#ifndef WIN32_LEAN_AND_MEAN
-		#define WIN32_LEAN_AND_MEAN 1
-	#endif
-	#include <windows.h>
+#ifdef WIN32
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include <windows.h>
 #endif
 
 /*
@@ -60,4 +60,4 @@ private:
   static TypeHandle _type_handle;
 };
 
-#endif //GRAPHICSWINDOWPROC_H
+#endif //GRAPHICSWINDOWPROC_H