mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
Define SDL_PLATFORM_* macros instead of underscored ones (#8875)
This commit is contained in:

committed by
GitHub

parent
ceccf24519
commit
31d133db40
@@ -603,7 +603,7 @@ static int WGI_JoystickInit(void)
|
||||
return SDL_SetError("RoInitialize() failed");
|
||||
}
|
||||
|
||||
#ifdef __WINRT__
|
||||
#ifdef SDL_PLATFORM_WINRT
|
||||
wgi.CoIncrementMTAUsage = CoIncrementMTAUsage;
|
||||
wgi.RoGetActivationFactory = RoGetActivationFactory;
|
||||
wgi.WindowsCreateStringReference = WindowsCreateStringReference;
|
||||
@@ -617,9 +617,9 @@ static int WGI_JoystickInit(void)
|
||||
RESOLVE(WindowsDeleteString);
|
||||
RESOLVE(WindowsGetStringRawBuffer);
|
||||
#undef RESOLVE
|
||||
#endif /* __WINRT__ */
|
||||
#endif /* SDL_PLATFORM_WINRT */
|
||||
|
||||
#ifndef __WINRT__
|
||||
#ifndef SDL_PLATFORM_WINRT
|
||||
{
|
||||
/* There seems to be a bug in Windows where a dependency of WGI can be unloaded from memory prior to WGI itself.
|
||||
* This results in Windows_Gaming_Input!GameController::~GameController() invoking an unloaded DLL and crashing.
|
||||
|
Reference in New Issue
Block a user