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

@@ -24,7 +24,7 @@
#include "SDL_vacopy.h"
#ifdef __vita__
#ifdef SDL_PLATFORM_VITA
#include <psp2/kernel/clib.h>
#endif
@@ -327,7 +327,7 @@ static size_t SDL_ScanFloat(const char *text, double *valuep)
int SDL_memcmp(const void *s1, const void *s2, size_t len)
{
#ifdef __vita__
#ifdef SDL_PLATFORM_VITA
/*
Using memcmp on NULL is UB per POSIX / C99 7.21.1/2.
But, both linux and bsd allow that, with an exception: