SDL: psp: Fixed building with pspdev when not using CMake. (863f3)

From 863f39fb9f0f845f609bea7cd1fbef33b77fdf31 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 28 Mar 2024 09:47:28 -0400
Subject: [PATCH] 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.

(cherry picked from commit 0d8ce4a761a8e84e5b746d0d53e7b1dd8fc92d4d)
---
 include/SDL_platform.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/SDL_platform.h b/include/SDL_platform.h
index 6e67b4577a3d0..e8bf11acfd4b9 100644
--- a/include/SDL_platform.h
+++ b/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)