diff options
Diffstat (limited to 'ext/zip/lib/zip_win32.h')
-rw-r--r-- | ext/zip/lib/zip_win32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/zip/lib/zip_win32.h b/ext/zip/lib/zip_win32.h index ea3860d602..a33347ba0c 100644 --- a/ext/zip/lib/zip_win32.h +++ b/ext/zip/lib/zip_win32.h @@ -1,3 +1,6 @@ + +#ifdef _MSC_VER + #define _POSIX_ #include <windows.h> #include <io.h> @@ -9,6 +12,9 @@ #ifndef mode_t # define mode_t int #endif +#ifndef strcasecmp +# define strcasecmp stricmp +#endif #ifndef snprintf # define snprintf _snprintf #endif @@ -20,3 +26,4 @@ # define fseeko fseek #endif */ +#endif |