Fix -Wundef warnings due to use of unguarded __3DS__

This commit is contained in:
Anonymous Maarten
2023-03-27 15:19:06 +02:00
parent 29077dc913
commit 431a1a8104
2 changed files with 2 additions and 2 deletions

View File

@@ -453,7 +453,7 @@ static int CPU_haveNEON(void)
return 1; /* ARMv8 always has non-optional NEON support. */
#elif defined(__VITA__)
return 1;
#elif __3DS__
#elif defined(__3DS__)
return 0;
#elif defined(__APPLE__) && defined(__ARM_ARCH) && (__ARM_ARCH >= 7)
/* (note that sysctlbyname("hw.optional.neon") doesn't work!) */

View File

@@ -575,7 +575,7 @@ SDL_RWFromFile(const char *file, const char *mode)
#elif __WINRT__
FILE *fp = NULL;
fopen_s(&fp, file, mode);
#elif __3DS__
#elif defined(__3DS__)
FILE *fp = N3DS_FileOpen(file, mode);
#else
FILE *fp = fopen(file, mode);