From 8293c552d6cec714f2f10b9450e2ae410d28fa21 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Sun, 28 Aug 2016 13:15:06 +1000 Subject: [PATCH] jim-win32: compile fixes for mingw32 Signed-off-by: Steve Bennett --- jim-win32.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jim-win32.c b/jim-win32.c index 1a6a3b6..3218edc 100644 --- a/jim-win32.c +++ b/jim-win32.c @@ -37,7 +37,7 @@ /* Apparently windows.h and cygwin don't mix, but we seem to get * away with it here. Use at your own risk under cygwin */ -#if defined(__CYGWIN__) +#if defined(__CYGWIN__) || defined(__MINGW32__) #define WIN32_LEAN_AND_MEAN #include #endif @@ -54,6 +54,10 @@ #pragma comment(lib, "psapi") #endif /* _MSC_VER >= 1000 */ +#if _WIN32_WINNT < 0x600 + #define GetTickCount64 GetTickCount +#endif + static Jim_Obj * Win32ErrorObj(Jim_Interp *interp, const char * szPrefix, DWORD dwError) { -- 2.11.4.GIT