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

@@ -60,7 +60,7 @@ void *SDL_LoadObject(const char *sofile)
SDL_FunctionPointer SDL_LoadFunction(void *handle, const char *name)
{
void *symbol = (void *)GetProcAddress((HMODULE)handle, name);
SDL_FunctionPointer symbol = (SDL_FunctionPointer)GetProcAddress((HMODULE)handle, name);
if (!symbol) {
char errbuf[512];
SDL_strlcpy(errbuf, "Failed loading ", SDL_arraysize(errbuf));