vlc_fixups: don't for disable warnings if the user already did it

The defines may already be set to 0/1 in the build environment.
This commit is contained in:
Steve Lhomme 2023-02-15 01:44:21 -08:00 committed by Jean-Baptiste Kempf
parent ab9b509df6
commit a6c3cff1d2
1 changed files with 4 additions and 0 deletions

View File

@ -28,8 +28,12 @@
#if defined(_MSC_VER)
// disable common warnings when compiling POSIX code
#ifndef _CRT_NONSTDC_NO_WARNINGS
#define _CRT_NONSTDC_NO_WARNINGS 1
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1
#endif
// sys/stat.h values
#define S_IWUSR _S_IWRITE