libsdl-org / sdl2-compat

An SDL2 compatibility layer that uses SDL3 behind the scenes.
zlib License
75 stars 17 forks source link

Updated for latest SDL3 changes as of 35c08c828b6b60f4bc10abfb45470098512c984f #158

Closed slouken closed 5 months ago

sezero commented 5 months ago

Some missing parts, from earlier commits I think :

diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 044d430..c89f16b 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -941,8 +941,8 @@
 #define SDL_hid_send_feature_report IGNORE_THIS_VERSION_OF_SDL_hid_send_feature_report
 #define SDL_hid_set_nonblocking IGNORE_THIS_VERSION_OF_SDL_hid_set_nonblocking
 #define SDL_hid_write IGNORE_THIS_VERSION_OF_SDL_hid_write
-#define SDL_iPhoneSetAnimationCallback IGNORE_THIS_VERSION_OF_SDL_iPhoneSetAnimationCallback
-#define SDL_iPhoneSetEventPump IGNORE_THIS_VERSION_OF_SDL_iPhoneSetEventPump
+#define SDL_iOSSetAnimationCallback IGNORE_THIS_VERSION_OF_SDL_iOSSetAnimationCallback
+#define SDL_iOSSetEventPump IGNORE_THIS_VERSION_OF_SDL_iOSSetEventPump
 #define SDL_iconv IGNORE_THIS_VERSION_OF_SDL_iconv
 #define SDL_iconv_close IGNORE_THIS_VERSION_OF_SDL_iconv_close
 #define SDL_iconv_open IGNORE_THIS_VERSION_OF_SDL_iconv_open
@@ -4701,12 +4701,12 @@
 #undef SDL_hid_write
 #endif

-#ifdef SDL_iPhoneSetAnimationCallback
-#undef SDL_iPhoneSetAnimationCallback
+#ifdef SDL_iOSSetAnimationCallback
+#undef SDL_iOSSetAnimationCallback
 #endif

-#ifdef SDL_iPhoneSetEventPump
-#undef SDL_iPhoneSetEventPump
+#ifdef SDL_iOSSetEventPump
+#undef SDL_iOSSetEventPump
 #endif

 #ifdef SDL_iconv
slouken commented 5 months ago

Some missing parts, from earlier commits I think

Got it, thanks!