aboutsummaryrefslogtreecommitdiff
path: root/jim-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-win32.c')
-rw-r--r--jim-win32.c6
1 files changed, 5 insertions, 1 deletions
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 <windows.h>
#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)
{