Skip to content

Commit

Permalink
updated sdl3_include_wrapper.h from latest SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Apr 28, 2023
1 parent 6b1cefe commit afaa13c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/sdl3_include_wrapper.h
Expand Up @@ -868,6 +868,15 @@
#define SDL_CreatePopupWindow IGNORE_THIS_VERSION_OF_SDL_CreatePopupWindow
#define SDL_GetWindowParent IGNORE_THIS_VERSION_OF_SDL_GetWindowParent
#define SDL_CreateWindowWithPosition IGNORE_THIS_VERSION_OF_SDL_CreateWindowWithPosition
#define SDL_GetAudioStreamFormat IGNORE_THIS_VERSION_OF_SDL_GetAudioStreamFormat
#define SDL_SetAudioStreamFormat IGNORE_THIS_VERSION_OF_SDL_SetAudioStreamFormat
#define SDL_CreateRWLock IGNORE_THIS_VERSION_OF_SDL_CreateRWLock
#define SDL_LockRWLockForReading IGNORE_THIS_VERSION_OF_SDL_LockRWLockForReading
#define SDL_LockRWLockForWriting IGNORE_THIS_VERSION_OF_SDL_LockRWLockForWriting
#define SDL_TryLockRWLockForReading IGNORE_THIS_VERSION_OF_SDL_TryLockRWLockForReading
#define SDL_TryLockRWLockForWriting IGNORE_THIS_VERSION_OF_SDL_TryLockRWLockForWriting
#define SDL_UnlockRWLock IGNORE_THIS_VERSION_OF_SDL_UnlockRWLock
#define SDL_DestroyRWLock IGNORE_THIS_VERSION_OF_SDL_DestroyRWLock

/* *** HACK HACK HACK:
* *** Avoid including SDL_thread.h: it defines SDL_CreateThread() as a macro
Expand Down Expand Up @@ -4286,6 +4295,42 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef SDL_CreateWindowWithPosition
#endif

#ifdef SDL_GetAudioStreamFormat
#undef SDL_GetAudioStreamFormat
#endif

#ifdef SDL_SetAudioStreamFormat
#undef SDL_SetAudioStreamFormat
#endif

#ifdef SDL_CreateRWLock
#undef SDL_CreateRWLock
#endif

#ifdef SDL_LockRWLockForReading
#undef SDL_LockRWLockForReading
#endif

#ifdef SDL_LockRWLockForWriting
#undef SDL_LockRWLockForWriting
#endif

#ifdef SDL_TryLockRWLockForReading
#undef SDL_TryLockRWLockForReading
#endif

#ifdef SDL_TryLockRWLockForWriting
#undef SDL_TryLockRWLockForWriting
#endif

#ifdef SDL_UnlockRWLock
#undef SDL_UnlockRWLock
#endif

#ifdef SDL_DestroyRWLock
#undef SDL_DestroyRWLock
#endif

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

Expand Down

0 comments on commit afaa13c

Please sign in to comment.