diff options
author | Andrea Weikert <elubie@gmx.net> | 2010-07-07 00:31:55 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2010-07-07 00:31:55 +0400 |
commit | c468f94f53674b5133772bc706b997233a75e86a (patch) | |
tree | e78f5ac8147a565f606e1f680b0ed5b112b7e8bc /intern | |
parent | ea183b58d35e5d23c2b7565be7c7051cf14d6521 (diff) |
fix mingw compile
- seems to have been conflicting #defines for INT, solved by moving #include up
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 2b26edea38d..da7a0399f41 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -37,6 +37,14 @@ #include "GHOST_SystemWin32.h" #include "GHOST_EventDragnDrop.h" +#define WIN32_LEAN_AND_MEAN +#ifdef _WIN32_IE +#undef _WIN32_IE +#endif +#define _WIN32_IE 0x0501 +#include <windows.h> +#include <shlobj.h> + // win64 doesn't define GWL_USERDATA #ifdef WIN32 #ifndef GWL_USERDATA @@ -88,8 +96,6 @@ #include "GHOST_WindowWin32.h" #include "GHOST_NDOFManager.h" -#include <shlobj.h> - // Key code values not found in winuser.h #ifndef VK_MINUS #define VK_MINUS 0xBD @@ -1129,4 +1135,4 @@ const GHOST_TUns8* GHOST_SystemWin32::getBinaryDir() const } return NULL; -}
\ No newline at end of file +} |