Skip to content

Commit

Permalink
update SDL20_include_wrapper.h header after latest SDL2 additions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Aug 26, 2023
1 parent d86a531 commit e64f78d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/SDL20_include_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,12 @@
#define SDL_GDKSuspendComplete IGNORE_THIS_VERSION_OF_SDL_GDKSuspendComplete
#define SDL_HasWindowSurface IGNORE_THIS_VERSION_OF_SDL_HasWindowSurface
#define SDL_DestroyWindowSurface IGNORE_THIS_VERSION_OF_SDL_DestroyWindowSurface
#define SDL_GDKGetDefaultUser IGNORE_THIS_VERSION_OF_SDL_GDKGetDefaultUser


#if defined(_WIN32) || defined(__OS2__)
/* *** HACK HACK HACK:
* *** Avoid including SDL_thread.h: it defines SDL_CreateThread() as a macro */
#if defined(_WIN32) || defined(__OS2__)
#define _SDL_thread_h
#define SDL_thread_h_
#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
Expand Down Expand Up @@ -939,6 +941,7 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef CreateMutex
#endif /* _WIN32 */


#ifdef SDL_BlitSurface
#undef SDL_BlitSurface
#endif
Expand Down Expand Up @@ -4427,6 +4430,10 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef SDL_DestroyWindowSurface
#endif

#ifdef SDL_GDKGetDefaultUser
#undef SDL_GDKGetDefaultUser
#endif

/* undefine these macros too: */
/* redefine using SDL2_xxx, if needed. */

Expand Down

0 comments on commit e64f78d

Please sign in to comment.