SDL_properties.c: mark CleanupFreeableProperty and CleanupSurface as SDLCALL

This commit is contained in:
Ozkan Sezer 2024-02-11 17:29:20 +03:00
parent bba2a5d360
commit 168322f358

View file

@ -375,7 +375,7 @@ int SDL_SetProperty(SDL_PropertiesID props, const char *name, void *value)
return SDL_PrivateSetProperty(props, name, property); return SDL_PrivateSetProperty(props, name, property);
} }
static void CleanupFreeableProperty(void *userdata, void *value) static void SDLCALL CleanupFreeableProperty(void *userdata, void *value)
{ {
SDL_free(value); SDL_free(value);
} }
@ -385,7 +385,7 @@ int SDL_SetFreeableProperty(SDL_PropertiesID props, const char *name, void *valu
return SDL_SetPropertyWithCleanup(props, name, value, CleanupFreeableProperty, NULL); return SDL_SetPropertyWithCleanup(props, name, value, CleanupFreeableProperty, NULL);
} }
static void CleanupSurface(void *userdata, void *value) static void SDLCALL CleanupSurface(void *userdata, void *value)
{ {
SDL_Surface *surface = (SDL_Surface *)value; SDL_Surface *surface = (SDL_Surface *)value;