Ver Fonte

psp: Fixed building with pspdev when not using CMake.

(psp-cmake defines `__PSP__` on the command line, but the compiler itself
only defines `__psp__` and some variations.

Fixes #9378.
Ryan C. Gordon há 2 anos atrás
pai
commit
0d8ce4a761
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      include/SDL_platform.h

+ 3 - 1
include/SDL_platform.h

@@ -199,8 +199,10 @@
 #undef __GDK__
 #define __GDK__ 1
 #endif
-#if defined(__PSP__)
+#if defined(__PSP__) || defined(__psp__)
+#ifdef __PSP__
 #undef __PSP__
+#endif
 #define __PSP__ 1
 #endif
 #if defined(PS2)