File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1543,6 +1543,8 @@ elseif(OHOS)
1543
1543
sdl_glob_sources ("${SDL3_SOURCE_DIR} /src/timer/unix/*.c" )
1544
1544
set (HAVE_SDL_TIMERS TRUE )
1545
1545
1546
+ set (SDL_PTHREADS 1 )
1547
+
1546
1548
CheckPTHREAD ()
1547
1549
elseif (EMSCRIPTEN )
1548
1550
# Hide noisy warnings that intend to aid mostly during initial stages of porting a new
Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ macro(CheckPTHREAD)
829
829
if (ANDROID OR SDL_PTHREADS_PRIVATE )
830
830
# the android libc provides built-in support for pthreads, so no
831
831
# additional linking or compile flags are necessary
832
- elseif (LINUX )
832
+ elseif (LINUX OR OHOS )
833
833
set (PTHREAD_CFLAGS "-D_REENTRANT" )
834
834
set (PTHREAD_LDFLAGS "-pthread" )
835
835
elseif (BSDI )
You can’t perform that action at this time.
0 commit comments