Apply patch from Ryakiotakis Antonis as posted on ML
authorNathan Letwory <nathan@letworyinteractive.com>
Tue, 10 May 2011 23:54:15 +0000 (23:54 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Tue, 10 May 2011 23:54:15 +0000 (23:54 +0000)
Should fix MingW build problems - mingw users, please test too :)

intern/ghost/intern/GHOST_SystemWin32.cpp
intern/ghost/intern/GHOST_SystemWin32.h

index 455a166ece0926f72f962b7df25d43faefe65799..ee8ec9e801831c5d30411a92f6d457e99db78560 100644 (file)
@@ -42,7 +42,7 @@
 #include <iostream>
 
 #ifdef FREE_WINDOWS
-#  define _WIN32_WINNT 0x0500 /* GetConsoleWindow() for MinGW */
+#  define WINVER 0x0501 /* GetConsoleWindow() for MinGW */
 #endif
 
 #include "GHOST_SystemWin32.h"
index 27c0cf33314309b37ab1cde99f32e8f266b324f2..729ad56d875a1db27515d88168e82a9ab2072036 100644 (file)
@@ -130,8 +130,6 @@ DECLARE_HANDLE(HRAWINPUT);
 #ifdef FREE_WINDOWS
 #define NEED_RAW_PROC
 typedef BOOL (WINAPI * LPFNDLLRRID)(RAWINPUTDEVICE*,UINT, UINT);
-#define RegisterRawInputDevices(pRawInputDevices, uiNumDevices, cbSize) ((pRegisterRawInputDevices)?pRegisterRawInputDevices(pRawInputDevices, uiNumDevices, cbSize):0)
-
 
 typedef UINT (WINAPI * LPFNDLLGRID)(HRAWINPUT, UINT, LPVOID, PUINT, UINT);
 #define GetRawInputData(hRawInput, uiCommand, pData, pcbSize, cbSizeHeader) ((pGetRawInputData)?pGetRawInputData(hRawInput, uiCommand, pData, pcbSize, cbSizeHeader):(UINT)-1)