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
ThatOSDev 2024-07-02 13:12:58 -06:00 committed by GitHub
parent 0b19b7d73b
commit dd1474e280
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

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)