Fixes for MINGW32: fix (conditional) includes, define missing macros jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 25 Jun 2015 15:08:59 +0100
branchjv
changeset 6878 169a9035ae52
parent 6874 353ea2fc65d0
child 6883 1e0c7cae7070
Fixes for MINGW32: fix (conditional) includes, define missing macros * #define WINVER as 0x0501 to get AW_ defines for AnimateWindow. * define PS_JOIN_MASK as it is not present in MINGW32 headers
WinWorkstation.st
--- a/WinWorkstation.st	Tue May 26 06:35:19 2015 +0200
+++ b/WinWorkstation.st	Thu Jun 25 15:08:59 2015 +0100
@@ -201,7 +201,11 @@
 # define NOCRYPT
 # define NOMCX
 # define WIN32_LEAN_AND_MEAN
-# define _WIN32_WINNT 0x0500    /* need this to get certain defines from winuser.h (WM_NCXBUTTONDOWN) */
+# define WINVER 0x0500    /* need this to get certain defines from winuser.h (WM_NCXBUTTONDOWN) */
+# undef WINVER
+# define WINVER 0x0501    /* need this to get AW_XXX defines from winuser.h */
+
+
 # include <windows.h>
 # include <shellapi.h>
 # include <sys\timeb.h>
@@ -921,6 +925,11 @@
 	unsigned int virtualKey;    /* in params */
 } registerHotKeyInfo;
 
+/* PS_JOIN_MASK is missing from the mingw32 headers */
+#ifndef PS_JOIN_MASK
+# define PS_JOIN_MASK (PS_JOIN_BEVEL|PS_JOIN_MITER|PS_JOIN_ROUND)
+#endif
+
 %}
 ! !