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

@@ -20,7 +20,7 @@
*/
#include "SDL_internal.h"
#if defined(__IOS__) || defined(__TVOS__)
#if defined(SDL_PLATFORM_IOS) || defined(SDL_PLATFORM_TVOS)
#include "../SDL_sysurl.h"
@@ -40,4 +40,4 @@ int SDL_SYS_OpenURL(const char *url)
}
}
#endif /* __IOS__ || __TVOS__ */
#endif /* SDL_PLATFORM_IOS || SDL_PLATFORM_TVOS */

View File

@@ -20,7 +20,7 @@
*/
#include "SDL_internal.h"
#if defined(__MACOS__)
#if defined(SDL_PLATFORM_MACOS)
#include "../SDL_sysurl.h"
@@ -36,4 +36,4 @@ int SDL_SYS_OpenURL(const char *url)
}
}
#endif /* __MACOS__ */
#endif /* SDL_PLATFORM_MACOS */

View File

@@ -25,7 +25,7 @@
#include <shellapi.h>
#if defined(__XBOXONE__) || defined(__XBOXSERIES__)
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
int SDL_SYS_OpenURL(const char *url)
{
/* Not supported */