Update zip.c (#5639)
Now works with GCC without failing the compilation. Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>pull/5644/head^2
parent
0b19b7d73b
commit
dd1474e280
|
@ -13,10 +13,14 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
/* For Visual Studio only, NOT MinGW (GCC) -- ThatOSDev */
|
||||||
|
#pragma warning( disable : 4706 )
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__WIN32__) || defined(_MSC_VER) || \
|
#if defined(_WIN32) || defined(__WIN32__) || defined(_MSC_VER) || \
|
||||||
defined(__MINGW32__)
|
defined(__MINGW32__)
|
||||||
/* Win32, DOS, MSVC, MSVS */
|
/* Win32, DOS, MSVC, MSVS, MinGW(GCC for windows) */
|
||||||
#pragma warning( disable : 4706 )
|
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
|
||||||
#define STRCLONE(STR) ((STR) ? _strdup(STR) : NULL)
|
#define STRCLONE(STR) ((STR) ? _strdup(STR) : NULL)
|
||||||
|
|
Loading…
Reference in New Issue