__WIN32__ -> WIN32

This commit is contained in:
David Rose 2010-06-22 22:07:30 +00:00
parent ce00397d7c
commit 1fe3638a1f
3 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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