mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-08 22:25:37 +00:00
tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros
This commit is contained in:
parent
4e465f25d0
commit
bcccbbd894
|
@ -4,8 +4,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Supress C4996 VS compiler warnings for unlink() */
|
/* Supress C4996 VS compiler warnings for unlink() */
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
#define _CRT_SECURE_NO_DEPRECATE
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
|
#endif
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_NONSTDC_NO_DEPRECATE)
|
||||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
|
|
@ -13,19 +13,18 @@
|
||||||
/* sanity tests on SDL_rwops.c (usefull for alternative implementations of stdio rwops) */
|
/* sanity tests on SDL_rwops.c (usefull for alternative implementations of stdio rwops) */
|
||||||
|
|
||||||
/* quiet windows compiler warnings */
|
/* quiet windows compiler warnings */
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_NONSTDC_NO_WARNINGS)
|
||||||
#define _CRT_NONSTDC_NO_WARNINGS
|
#define _CRT_NONSTDC_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
/* WARNING ! those 2 files will be destroyed by this test program */
|
/* WARNING ! those 2 files will be destroyed by this test program */
|
||||||
|
|
||||||
#ifdef __IPHONEOS__
|
#ifdef __IPHONEOS__
|
||||||
|
|
Loading…
Reference in a new issue