Fix to let Ghost compile with win64 msvc compiler.

This commit is contained in:
Daniel Genrich 2008-07-13 17:49:12 +00:00
parent 59df4a4b3a
commit 37ca3d7a39
2 changed files with 16 additions and 0 deletions

@ -42,6 +42,14 @@
#include "GHOST_SystemWin32.h"
// win64 doesn't define GWL_USERDATA
#ifdef WIN32
#ifndef GWL_USERDATA
#define GWL_USERDATA GWLP_USERDATA
#define GWL_WNDPROC GWLP_WNDPROC
#endif
#endif
/*
* According to the docs the mouse wheel message is supported from windows 98
* upwards. Leaving WINVER at default value, the WM_MOUSEWHEEL message and the

@ -48,6 +48,14 @@
#define M_PI 3.1415926536
#endif
// win64 doesn't define GWL_USERDATA
#ifdef WIN32
#ifndef GWL_USERDATA
#define GWL_USERDATA GWLP_USERDATA
#define GWL_WNDPROC GWLP_WNDPROC
#endif
#endif
LPCSTR GHOST_WindowWin32::s_windowClassName = "GHOST_WindowClass";
const int GHOST_WindowWin32::s_maxTitleLength = 128;
HGLRC GHOST_WindowWin32::s_firsthGLRc = NULL;