[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] Declare _WIN32_WINNT for access to timer funct
From: |
Evan Hanson |
Subject: |
[Chicken-hackers] [PATCH] Declare _WIN32_WINNT for access to timer functions on mingw32 |
Date: |
Wed, 17 Feb 2016 14:08:08 +1300 |
32-bit MinGW requires _WIN32_WINNT >= 0x0500 in order to access the
CreateTimerQueueTimer and DeleteTimerQueueTimer functions, which are
used by the statistical profiler.
---
chicken.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/chicken.h b/chicken.h
index 5a41f73..d8f6759 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 */
--
2.7.0.rc3
- [Chicken-hackers] [PATCH] Declare _WIN32_WINNT for access to timer functions on mingw32,
Evan Hanson <=