~ chicken-core (chicken-5) 9126396739faeab8c8425360048dd4a20e4d6456
commit 9126396739faeab8c8425360048dd4a20e4d6456 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:55 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 232ea778..84ca9abb 100644 --- a/chicken.h +++ b/chicken.h @@ -98,6 +98,12 @@ # define C_LLP #endif +/* Declare base Win32 version for access to Timer Queue functions. */ + +#ifdef __MINGW32__ +# define _WIN32_WINNT 0x0500 +#endif + /* Headers */Trap