wikiheaders: Allow basic typedefs to pull in some preprocessor logic.

Reference Issue #9557.

This lets SDL_AudioFormat have the `#if byteorder == lilendian` section.
This commit is contained in:
Ryan C. Gordon 2024-04-25 16:42:44 -04:00
parent a13bdeee8a
commit 6b1a98e664
No known key found for this signature in database
GPG key ID: FA148B892AB48044
3 changed files with 14 additions and 15 deletions

View file

@ -83,11 +83,7 @@ typedef enum SDL_ThreadPriority {
*/
typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
#if (defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_GDK)) && !defined(SDL_PLATFORM_WINRT)
/**
* \file SDL_thread.h
*
/*
* We compile SDL into a DLL. This means, that it's the DLL which
* creates a new thread for the calling process with the SDL_CreateThread()
* API. There is a problem with this, that only the RTL of the SDL3.DLL will
@ -105,6 +101,7 @@ typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
* Always use the _beginthread() and _endthread() of the calling runtime
* library!
*/
#if (defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_GDK)) && !defined(SDL_PLATFORM_WINRT)
#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
typedef uintptr_t (__cdecl * pfnSDL_CurrentBeginThread)