From 1fe3638a1f3f1eb3a3123eaa69971518d2572ddf Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 22 Jun 2010 22:07:30 +0000 Subject: [PATCH] __WIN32__ -> WIN32 --- panda/src/display/customGraphicsWindowProc.cxx | 2 +- panda/src/display/customGraphicsWindowProc.h | 2 +- panda/src/display/graphicsWindowProc.h | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/panda/src/display/customGraphicsWindowProc.cxx b/panda/src/display/customGraphicsWindowProc.cxx index cab48df3d1..6450d27fff 100644 --- a/panda/src/display/customGraphicsWindowProc.cxx +++ b/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); diff --git a/panda/src/display/customGraphicsWindowProc.h b/panda/src/display/customGraphicsWindowProc.h index bc64221fb2..28bcdad9d4 100644 --- a/panda/src/display/customGraphicsWindowProc.h +++ b/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 diff --git a/panda/src/display/graphicsWindowProc.h b/panda/src/display/graphicsWindowProc.h index 6093526b71..8034131544 100644 --- a/panda/src/display/graphicsWindowProc.h +++ b/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 +#ifdef WIN32 +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include #endif /* @@ -60,4 +60,4 @@ private: static TypeHandle _type_handle; }; -#endif //GRAPHICSWINDOWPROC_H \ No newline at end of file +#endif //GRAPHICSWINDOWPROC_H