Fix -Wundef warnings due to use of unguarded __3DS__
This commit is contained in:
1 parent
29077dc913
commit
431a1a8104
2 files changed
+2
-2
No files matched your search
@@ -453,7 +453,7 @@ static int CPU_haveNEON(void)
|
|||||||
return 1; /* ARMv8 always has non-optional NEON support. */
|
return 1; /* ARMv8 always has non-optional NEON support. */
|
||||||
#elif defined(__VITA__)
|
#elif defined(__VITA__)
|
||||||
return 1;
|
return 1;
|
||||||
#elif __3DS__
|
#elif defined(__3DS__)
|
||||||
return 0;
|
return 0;
|
||||||
#elif defined(__APPLE__) && defined(__ARM_ARCH) && (__ARM_ARCH >= 7)
|
#elif defined(__APPLE__) && defined(__ARM_ARCH) && (__ARM_ARCH >= 7)
|
||||||
/* (note that sysctlbyname("hw.optional.neon") doesn't work!) */
|
/* (note that sysctlbyname("hw.optional.neon") doesn't work!) */
|
||||||
|
|||||||
@@ -575,7 +575,7 @@ SDL_RWFromFile(const char *file, const char *mode)
|
|||||||
#elif __WINRT__
|
#elif __WINRT__
|
||||||
FILE *fp = NULL;
|
FILE *fp = NULL;
|
||||||
fopen_s(&fp, file, mode);
|
fopen_s(&fp, file, mode);
|
||||||
#elif __3DS__
|
#elif defined(__3DS__)
|
||||||
FILE *fp = N3DS_FileOpen(file, mode);
|
FILE *fp = N3DS_FileOpen(file, mode);
|
||||||
#else
|
#else
|
||||||
FILE *fp = fopen(file, mode);
|
FILE *fp = fopen(file, mode);
|
||||||
|
|||||||
Reference in new issue
Block a user