From a6c3cff1d2ffc34f3841213b43abc227244f952e Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 15 Feb 2023 01:44:21 -0800 Subject: [PATCH] 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. --- include/vlc_fixups.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h index bbb9a05564..0adcbf227e 100644 --- a/include/vlc_fixups.h +++ b/include/vlc_fixups.h @@ -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