diff options
Diffstat (limited to 'jim-win32compat.c')
-rw-r--r-- | jim-win32compat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jim-win32compat.c b/jim-win32compat.c index 9eb8e7f..94bd831 100644 --- a/jim-win32compat.c +++ b/jim-win32compat.c @@ -1,6 +1,13 @@ #include "jim.h" #include "jimautoconf.h" +#if defined(_WIN32) || defined(WIN32) +#ifndef STRICT +#define STRICT +#endif +#define WIN32_LEAN_AND_MEAN +#include <windows.h> + #if defined(HAVE_DLOPEN_COMPAT) void *dlopen(const char *path, int mode) { @@ -30,6 +37,9 @@ char *dlerror(void) #endif #ifdef _MSC_VER + +#include <sys/timeb.h> + /* POSIX gettimeofday() compatibility for WIN32 */ int gettimeofday(struct timeval *tv, void *unused) { @@ -119,3 +129,4 @@ struct dirent *readdir(DIR * dir) return result; } #endif +#endif |