~ chicken-core (chicken-5) 65af265831bd6fd4ab8d1e1a1f9e7dc14a17107f
commit 65af265831bd6fd4ab8d1e1a1f9e7dc14a17107f
Author: Evan Hanson <evhan@foldling.org>
AuthorDate: Wed Feb 17 14:08:08 2016 +1300
Commit: Peter Bex <peter@more-magic.net>
CommitDate: Sat Feb 20 21:45:49 2016 +0100
Declare _WIN32_WINNT for access to timer functions on mingw32
32-bit MinGW requires _WIN32_WINNT >= 0x0500 in order to access the
CreateTimerQueueTimer and DeleteTimerQueueTimer functions, which are
used by the statistical profiler.
Signed-off-by: Peter Bex <peter@more-magic.net>
diff --git a/chicken.h b/chicken.h
index a4087fe3..3694cd67 100644
--- a/chicken.h
+++ b/chicken.h
@@ -104,6 +104,12 @@
# define C_LLP
#endif
+/* Declare base Win32 version for access to Timer Queue functions. */
+
+#ifdef __MINGW32__
+# define _WIN32_WINNT 0x0500
+#endif
+
/* Headers */
Trap