1 #ifndef JIM_WIN32COMPAT_H
2 #define JIM_WIN32COMPAT_H
11 #define WIN32_LEAN_AND_MEAN
15 #pragma warning(disable:4146)
18 #define strcasecmp _stricmp
20 #define jim_wide _int64
22 #define LLONG_MAX 9223372036854775807I64
25 #define LLONG_MIN (-LLONG_MAX - 1I64)
27 #define JIM_WIDE_MIN LLONG_MIN
28 #define JIM_WIDE_MAX LLONG_MAX
29 #define JIM_WIDE_MODIFIER "I64d"
38 int gettimeofday(struct timeval
*tv
, void *unused
);
45 long handle
; /* -1 for failed rewind */
46 struct _finddata_t info
;
47 struct dirent result
; /* d_name null iff first time */
48 char *name
; /* null-terminated char string */
51 DIR *opendir(const char *name
);
52 int closedir(DIR *dir
);
53 struct dirent
*readdir(DIR *dir
);