Fixed warning C4152: nonstandard extension, function/data pointer conversion in expression

This commit is contained in:
Sam Lantinga
2024-01-19 06:36:05 -08:00
parent 9fc1135e3b
commit b566bfce07
8 changed files with 11 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ int SDL_SYS_CreateThread(SDL_Thread *thread)
const DWORD flags = thread->stacksize ? STACK_SIZE_PARAM_IS_A_RESERVATION : 0;
/* Save the function which we will have to call to clear the RTL of calling app! */
thread->endfunc = pfnEndThread;
thread->endfunc = (SDL_FunctionPointer)pfnEndThread;
/* thread->stacksize == 0 means "system default", same as win32 expects */
if (pfnBeginThread) {