From 016d5cbd1ec7044349b5ae26399473ae257cce89 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 1 Apr 2023 20:37:40 +0300
Subject: [PATCH] SDL20_include_wrapper.h: undefine more macros from SDL2
headers.
---
src/SDL20_include_wrapper.h | 91 +++++++++++++++++++++++++++++++++++++
1 file changed, 91 insertions(+)
diff --git a/src/SDL20_include_wrapper.h b/src/SDL20_include_wrapper.h
index b461e10e7..55c04d6fe 100644
--- a/src/SDL20_include_wrapper.h
+++ b/src/SDL20_include_wrapper.h
@@ -4417,6 +4417,97 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef SDL_GDKSuspendComplete
#endif
+/* undefine these macros too: */
+/* redefine using SDL2_xxx, if needed. */
+
+#ifdef SDL_enabled_assert
+#undef SDL_enabled_assert
+#endif
+
+#ifdef SDL_OutOfMemory
+#undef SDL_OutOfMemory
+#endif
+
+#ifdef SDL_Unsupported
+#undef SDL_Unsupported
+#endif
+
+#ifdef SDL_InvalidParamError
+#undef SDL_InvalidParamError
+#endif
+
+#ifdef AtomicIncRef
+#undef AtomicIncRef
+#endif
+
+#ifdef SDL_AtomicDecRef
+#undef SDL_AtomicDecRef
+#endif
+
+#ifdef SDL_copyp
+#undef SDL_copyp
+#endif
+
+#ifdef SDL_zero
+#undef SDL_zero
+#endif
+
+#ifdef SDL_zeroa
+#undef SDL_zeroa
+#endif
+
+#ifdef SDL_zerop
+#undef SDL_zerop
+#endif
+
+#ifdef SDL_stack_alloc
+#undef SDL_stack_alloc
+#endif
+
+#ifdef SDL_stack_free
+#undef SDL_stack_free
+#endif
+
+#ifdef SDL_iconv_utf8_locale
+#undef SDL_iconv_utf8_locale
+#endif
+
+#ifdef SDL_iconv_utf8_ucs2
+#undef SDL_iconv_utf8_ucs2
+#endif
+
+#ifdef SDL_iconv_utf8_ucs4
+#undef SDL_iconv_utf8_ucs4
+#endif
+
+#ifdef SDL_iconv_wchar_utf8
+#undef SDL_iconv_wchar_utf8
+#endif
+
+#ifdef SDL_LoadWAV
+#undef SDL_LoadWAV
+#endif
+
+#ifdef SDL_LoadBMP
+#undef SDL_LoadBMP
+#endif
+
+#ifdef SDL_SaveBMP
+#undef SDL_SaveBMP
+#endif
+
+#ifdef SDL_GameControllerAddMappingsFromFile
+#undef SDL_GameControllerAddMappingsFromFile
+#endif
+
+#ifdef SDL_iOSSetAnimationCallback
+#undef SDL_iOSSetAnimationCallback
+#endif
+
+#ifdef SDL_iOSSetEventPump
+#undef SDL_iOSSetEventPump
+#endif
+
#endif
/* vi: set ts=4 sw=4 expandtab: */