Don't try to use SDL platform macros in configure-time checks
At the point that we run this, nothing SDL-specific is set up yet. __APPLE__ is a compiler predefined macro that forms part of the API on Apple platforms, so it's fine to rely on it. This partially reverts commitmain31d133db
. Fixes:31d133db
"Define SDL_PLATFORM_* macros instead of underscored ones (#8875)" Signed-off-by: Simon McVittie <smcv@collabora.com>
parent
f61870cfb4
commit
a06ee5b98d
|
@ -849,7 +849,7 @@ macro(CheckPTHREAD)
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
#ifdef SDL_PLATFORM_APPLE
|
#ifdef __APPLE__
|
||||||
pthread_setname_np(\"\");
|
pthread_setname_np(\"\");
|
||||||
#else
|
#else
|
||||||
pthread_setname_np(pthread_self(),\"\");
|
pthread_setname_np(pthread_self(),\"\");
|
||||||
|
|
Loading…
Reference in New Issue