Commit ac7374c8528e65773eb80a88c235870462f76322

Thomas de Grivel 2023-12-08T20:27:56

fix pthread

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c
index 5316807..f996c6f 100644
--- a/src/thread/pthread/SDL_systhread.c
+++ b/src/thread/pthread/SDL_systhread.c
@@ -84,7 +84,14 @@ static int (*ppthread_setname_np)(const char *) = NULL;
 static SDL_bool checked_setname = SDL_FALSE;
 static int (*ppthread_setname_np)(pthread_t, const char *) = NULL;
 #endif
+
+#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
+int SDL_SYS_CreateThread(SDL_Thread *thread,
+                         pfnSDL_CurrentBeginThread pfnBeginThread,
+                         pfnSDL_CurrentEndThread pfnEndThread)
+#else
 int SDL_SYS_CreateThread(SDL_Thread *thread)
+#endif
 {
     pthread_attr_t type;