tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros

This commit is contained in:
Ozkan Sezer 2022-12-05 00:35:32 +03:00
parent 4e465f25d0
commit bcccbbd894
2 changed files with 7 additions and 4 deletions

View file

@ -4,8 +4,12 @@
*/
/* Supress C4996 VS compiler warnings for unlink() */
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
#define _CRT_SECURE_NO_DEPRECATE
#endif
#if defined(_MSC_VER) && !defined(_CRT_NONSTDC_NO_DEPRECATE)
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#include <stdio.h>
#ifndef _MSC_VER