add patch for compiling zip.c with tcc on windows
parent
70a34db6b7
commit
7a82b4b17b
|
@ -228,6 +228,10 @@
|
||||||
#define MINIZ_HAS_64BIT_REGISTERS 0
|
#define MINIZ_HAS_64BIT_REGISTERS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(__WINDOWS__) && (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
|
||||||
|
#define __WINDOWS__
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -4942,7 +4946,12 @@ static int mz_mkdir(const char *pDirname) {
|
||||||
#define MZ_FFLUSH fflush
|
#define MZ_FFLUSH fflush
|
||||||
#define MZ_FREOPEN(f, m, s) freopen(f, m, s)
|
#define MZ_FREOPEN(f, m, s) freopen(f, m, s)
|
||||||
#define MZ_DELETE_FILE remove
|
#define MZ_DELETE_FILE remove
|
||||||
|
|
||||||
|
#if defined(__WINDOWS__)
|
||||||
|
#define MZ_MKDIR(d) _mkdir(d)
|
||||||
|
#else
|
||||||
#define MZ_MKDIR(d) mkdir(d, 0755)
|
#define MZ_MKDIR(d) mkdir(d, 0755)
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(__USE_LARGEFILE64) /* gcc, clang */
|
#elif defined(__USE_LARGEFILE64) /* gcc, clang */
|
||||||
#ifndef MINIZ_NO_TIME
|
#ifndef MINIZ_NO_TIME
|
||||||
|
|
Loading…
Reference in New Issue