From 168322f3588ca6207265388371813384c043adf9 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 11 Feb 2024 17:29:20 +0300 Subject: [PATCH] SDL_properties.c: mark CleanupFreeableProperty and CleanupSurface as SDLCALL --- src/SDL_properties.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL_properties.c b/src/SDL_properties.c index 5ac9478e39..e25d6f2d8d 100644 --- a/src/SDL_properties.c +++ b/src/SDL_properties.c @@ -375,7 +375,7 @@ int SDL_SetProperty(SDL_PropertiesID props, const char *name, void *value) return SDL_PrivateSetProperty(props, name, property); } -static void CleanupFreeableProperty(void *userdata, void *value) +static void SDLCALL CleanupFreeableProperty(void *userdata, void *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); } -static void CleanupSurface(void *userdata, void *value) +static void SDLCALL CleanupSurface(void *userdata, void *value) { SDL_Surface *surface = (SDL_Surface *)value;