Update zip.c (#5639)

Now works with GCC without failing the compilation.

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
This commit is contained in:
ThatOSDev
2024-07-02 21:12:58 +02:00
committed by GitHub
co-authored by Kim Kulling
parent 0b19b7d73b
commit dd1474e280
+6 -2
View File
@@ -13,10 +13,14 @@
#include <sys/stat.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) || \
defined(__MINGW32__)
/* Win32, DOS, MSVC, MSVS */
#pragma warning( disable : 4706 )
/* Win32, DOS, MSVC, MSVS, MinGW(GCC for windows) */
#include <direct.h>
#define STRCLONE(STR) ((STR) ? _strdup(STR) : NULL)