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

This commit is contained in:
Sam Lantinga committed 2024-01-19 06:49:53 -08:00
1 parent 9fc1135e3b
commit b566bfce07
8 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ struct SDL_Thread
int(SDLCALL *userfunc)(void *);
void *userdata;
void *data;
void *endfunc; /* only used on some platforms. */
SDL_FunctionPointer endfunc; /* only used on some platforms. */
};
/* This is the function called to run a thread */
+1 -1
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) {