tests: avoid MSVC preaching about unsafe functions

This commit is contained in:
Anonymous Maarten 2022-10-06 01:09:32 +02:00 committed by Anonymous Maarten
parent ebae142aa4
commit b771d9beec
3 changed files with 11 additions and 2 deletions

View File

@ -4,7 +4,9 @@
*/
/* quiet windows compiler warnings */
#define _CRT_SECURE_NO_WARNINGS
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <string.h>

View File

@ -10,7 +10,9 @@
*/
/* quiet windows compiler warnings */
#define _CRT_SECURE_NO_WARNINGS
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>

View File

@ -10,6 +10,11 @@
freely.
*/
/* quiet windows compiler warnings */
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include "SDL.h"