Skip to content

Commit d9af41b

Browse files
Arcnorslouken
authored andcommitted
cmake: more private definitions
1 parent 5826966 commit d9af41b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

cmake/sdlchecks.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ endmacro()
826826
macro(CheckPTHREAD)
827827
cmake_push_check_state()
828828
if(SDL_PTHREADS)
829-
if(ANDROID)
829+
if(ANDROID OR SDL_PTHREADS_PRIVATE)
830830
# the android libc provides built-in support for pthreads, so no
831831
# additional linking or compile flags are necessary
832832
elseif(LINUX)

include/build_config/SDL_build_config.h.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333

3434
#cmakedefine SDL_PLATFORM_PRIVATE 1
3535

36+
#ifdef SDL_PLATFORM_PRIVATE
37+
#include "SDL_begin_config_private.h"
38+
#endif
39+
3640
#cmakedefine HAVE_GCC_ATOMICS 1
3741
#cmakedefine HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
3842

@@ -368,6 +372,8 @@
368372
#cmakedefine SDL_TIME_N3DS 1
369373
#cmakedefine SDL_TIME_NGAGE 1
370374

375+
#cmakedefine SDL_TIME_PRIVATE 1
376+
371377
/* Enable various timer systems */
372378
#cmakedefine SDL_TIMER_HAIKU 1
373379
#cmakedefine SDL_TIMER_UNIX 1
@@ -471,6 +477,8 @@
471477
#cmakedefine SDL_GPU_VULKAN 1
472478
#cmakedefine SDL_GPU_METAL 1
473479

480+
#cmakedefine SDL_GPU_PRIVATE 1
481+
474482
/* Enable system power support */
475483
#cmakedefine SDL_POWER_ANDROID 1
476484
#cmakedefine SDL_POWER_LINUX 1
@@ -505,6 +513,8 @@
505513
/* Enable system storage support */
506514
#cmakedefine SDL_STORAGE_STEAM @SDL_STORAGE_STEAM@
507515

516+
#cmakedefine SDL_STORAGE_PRIVATE 1
517+
508518
/* Enable system FSops support */
509519
#cmakedefine SDL_FSOPS_POSIX 1
510520
#cmakedefine SDL_FSOPS_WINDOWS 1

0 commit comments

Comments
 (0)