mirror of https://github.com/encounter/SDL.git
Don't include pthreads code when threads are disabled
Fixes https://github.com/libsdl-org/SDL/issues/4950
This commit is contained in:
parent
93556e67e0
commit
bbac1e9add
|
@ -859,7 +859,7 @@ endmacro()
|
||||||
# PTHREAD_CFLAGS
|
# PTHREAD_CFLAGS
|
||||||
# PTHREAD_LIBS
|
# PTHREAD_LIBS
|
||||||
macro(CheckPTHREAD)
|
macro(CheckPTHREAD)
|
||||||
if(SDL_PTHREADS)
|
if(SDL_THREADS AND SDL_PTHREADS)
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
# the android libc provides built-in support for pthreads, so no
|
# the android libc provides built-in support for pthreads, so no
|
||||||
# additional linking or compile flags are necessary
|
# additional linking or compile flags are necessary
|
||||||
|
|
Loading…
Reference in New Issue