Define SDL_PLATFORM_* macros instead of underscored ones (#8875)

This commit is contained in:
Anonymous Maarten
2024-01-24 02:40:51 +01:00
committed by GitHub
parent ceccf24519
commit 31d133db40
208 changed files with 1293 additions and 1138 deletions

View File

@@ -1361,7 +1361,7 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
}
SDL_free((void *)modes);
#if defined(SDL_VIDEO_DRIVER_WINDOWS) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
#if defined(SDL_VIDEO_DRIVER_WINDOWS) && !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
/* Print the D3D9 adapter index */
adapterIndex = SDL_Direct3D9GetAdapterIndex(displayID);
SDL_Log("D3D9 Adapter Index: %d", adapterIndex);

View File

@@ -25,7 +25,7 @@
#include <libunwind.h>
#endif
#ifdef __WINDOWS__
#ifdef SDL_PLATFORM_WINDOWS
#include <windows.h>
#include <dbghelp.h>
@@ -153,7 +153,7 @@ static void SDL_TrackAllocation(void *mem, size_t size)
}
}
}
#elif defined(__WINDOWS__)
#elif defined(SDL_PLATFORM_WINDOWS)
{
Uint32 count;
PVOID frames[63];
@@ -295,7 +295,7 @@ void SDLTest_TrackAllocations(void)
if (s_previous_allocations != 0) {
SDL_Log("SDLTest_TrackAllocations(): There are %d previous allocations, disabling free() validation", s_previous_allocations);
}
#ifdef __WINDOWS__
#ifdef SDL_PLATFORM_WINDOWS
{
s_dbghelp = SDL_LoadObject("dbghelp.dll");
if (s_dbghelp) {