Added _CRT_NONSTDC_NO_DEPRECATE for MSVC compilation with strdup.

This commit is contained in:
Nathan Moinvaziri 2023-04-12 13:58:39 -07:00
parent 3394c29b52
commit 3b0461e229

View File

@ -430,7 +430,7 @@ endif()
# Platform specific
if(WIN32)
list(APPEND MINIZIP_DEF -D_CRT_SECURE_NO_DEPRECATE)
list(APPEND MINIZIP_DEF -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
list(APPEND MINIZIP_SRC mz_os_win32.c mz_strm_os_win32.c)
if(MZ_PKCRYPT OR MZ_WZAES)