[Bf-committers] Yet another compile patch for MinGW

Ρυακιωτάκης Αντώνης kalast at gmail.com
Tue May 10 17:57:02 CEST 2011


I am starting to get the hang of this :)
Anyway, for those still stuck with compilation on MinGW here's a patch.
These errors exist in bmesh too so if Joe or Campbell can correct there too
I can get my familiar synchronization green tick on svn :)


Index: intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- intern/ghost/intern/GHOST_SystemWin32.cpp    (revision 36597)
+++ intern/ghost/intern/GHOST_SystemWin32.cpp    (working copy)
@@ -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: intern/ghost/intern/GHOST_SystemWin32.h
===================================================================
--- intern/ghost/intern/GHOST_SystemWin32.h    (revision 36597)
+++ intern/ghost/intern/GHOST_SystemWin32.h    (working copy)
@@ -127,7 +127,6 @@
 #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);


More information about the Bf-committers mailing list