Commit efa2e6a1eaff970375afd1725170faa4c2c72f8f

Ozkan Sezer 2022-05-19T18:55:02

SDL_thread.h: use SDL_ThreadFunction for SDL_CreateThreadWithStackSize

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_thread.h b/include/SDL_thread.h
index 35e680d..1e04a4f 100644
--- a/include/SDL_thread.h
+++ b/include/SDL_thread.h
@@ -129,7 +129,7 @@ SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data,
                  pfnSDL_CurrentEndThread pfnEndThread);
 
 extern DECLSPEC SDL_Thread *SDLCALL
-SDL_CreateThreadWithStackSize(int (SDLCALL * fn) (void *),
+SDL_CreateThreadWithStackSize(SDL_ThreadFunction fn,
                  const char *name, const size_t stacksize, void *data,
                  pfnSDL_CurrentBeginThread pfnBeginThread,
                  pfnSDL_CurrentEndThread pfnEndThread);