[Bf-blender-cvs] [dd897de] master: check for missing Windows error code headers (was missing from Mingw64)

Jason Wilkins noreply at git.blender.org
Sat Oct 11 06:22:19 CEST 2014


Commit: dd897de06114d6a39908f82c228027f633359d0b
Author: Jason Wilkins
Date:   Fri Oct 10 22:54:06 2014 -0500
Branches: master
https://developer.blender.org/rBdd897de06114d6a39908f82c228027f633359d0b

check for missing Windows error code headers (was missing from Mingw64)

===================================================================

M	intern/ghost/intern/GHOST_Context.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_Context.cpp b/intern/ghost/intern/GHOST_Context.cpp
index 1b0e8d7..2815f9a 100644
--- a/intern/ghost/intern/GHOST_Context.cpp
+++ b/intern/ghost/intern/GHOST_Context.cpp
@@ -36,6 +36,10 @@
 #ifdef _WIN32
 #  include <GL/wglew.h> // only for symbolic constants, do not use API functions
 #  include <tchar.h>
+#
+#  ifndef ERROR_PROFILE_DOES_NOT_MATCH_DEVICE
+#    define ERROR_PROFILE_DOES_NOT_MATCH_DEVICE 0x7E7 // Mingw64 headers may have had this
+#  endif
 #endif
 
 #include <cstdio>




More information about the Bf-blender-cvs mailing list