sdl2-compat: sync headers with latest SDL2.

From 1e03d64cb0b2eae75f2d3cff8f73517a339c9c34 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 5 Apr 2024 11:55:24 +0300
Subject: [PATCH] sync headers with latest SDL2.

---
 include/SDL2/SDL_platform.h | 4 +++-
 include/SDL2/SDL_stdinc.h   | 4 ++--
 include/SDL2/SDL_video.h    | 4 ++++
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/SDL2/SDL_platform.h b/include/SDL2/SDL_platform.h
index 6e67b45..e8bf11a 100644
--- a/include/SDL2/SDL_platform.h
+++ b/include/SDL2/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)
diff --git a/include/SDL2/SDL_stdinc.h b/include/SDL2/SDL_stdinc.h
index 0035a35..3ddf042 100644
--- a/include/SDL2/SDL_stdinc.h
+++ b/include/SDL2/SDL_stdinc.h
@@ -412,8 +412,8 @@ SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
 
 /** \cond */
 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
-#if !defined(__ANDROID__) && !defined(__VITA__) && !defined(__3DS__)
-   /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
+#if !defined(__VITA__) && !defined(__3DS__)
+/* TODO: include/SDL_stdinc.h:422: error: size of array 'SDL_dummy_enum' is negative */
 typedef enum
 {
     DUMMY_ENUM_VALUE
diff --git a/include/SDL2/SDL_video.h b/include/SDL2/SDL_video.h
index fa47d30..b0d7598 100644
--- a/include/SDL2/SDL_video.h
+++ b/include/SDL2/SDL_video.h
@@ -1297,6 +1297,10 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasWindowSurface(SDL_Window *window);
  * This surface will be invalidated if the window is resized. After resizing a
  * window this function must be called again to return a valid surface.
  *
+ * Note that on some platforms the pixels pointer of the surface may be
+ * modified after each call to SDL_UpdateWindowSurface(), so that the platform
+ * code can implement efficient double or triple buffering.
+ *
  * You may not combine this with 3D or the rendering API on this window.
  *
  * This function is affected by `SDL_HINT_FRAMEBUFFER_ACCELERATION`.