mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
__WIN32__ -> WIN32
This commit is contained in:
parent
ce00397d7c
commit
1fe3638a1f
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user