SDL: mark SDL_ClipboardTextCallback as SDLCALL

From ee5289ef09fd9dd94d3e62af3f9560b7514e11ed Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 11 Feb 2024 18:55:40 +0300
Subject: [PATCH] mark SDL_ClipboardTextCallback as SDLCALL

---
 src/video/SDL_clipboard.c   | 5 ++---
 src/video/SDL_clipboard_c.h | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/video/SDL_clipboard.c b/src/video/SDL_clipboard.c
index dbfbe51363a0..fed6e719a284 100644
--- a/src/video/SDL_clipboard.c
+++ b/src/video/SDL_clipboard.c
@@ -253,7 +253,7 @@ static const char **SDL_GetTextMimeTypes(SDL_VideoDevice *_this, size_t *num_mim
     }
 }
 
-const void *SDL_ClipboardTextCallback(void *userdata, const char *mime_type, size_t *size)
+const void * SDLCALL SDL_ClipboardTextCallback(void *userdata, const char *mime_type, size_t *size)
 {
     char *text = (char *)userdata;
     if (text) {
@@ -278,9 +278,8 @@ int SDL_SetClipboardText(const char *text)
         text_mime_types = SDL_GetTextMimeTypes(_this, &num_mime_types);
 
         return SDL_SetClipboardData(SDL_ClipboardTextCallback, SDL_free, SDL_strdup(text), text_mime_types, num_mime_types);
-    } else {
-        return SDL_ClearClipboardData();
     }
+    return SDL_ClearClipboardData();
 }
 
 char *SDL_GetClipboardText(void)
diff --git a/src/video/SDL_clipboard_c.h b/src/video/SDL_clipboard_c.h
index 98e204a26378..acab36f96ed4 100644
--- a/src/video/SDL_clipboard_c.h
+++ b/src/video/SDL_clipboard_c.h
@@ -37,6 +37,6 @@ extern void *SDL_GetInternalClipboardData(SDL_VideoDevice *_this, const char *mi
 extern SDL_bool SDL_HasInternalClipboardData(SDL_VideoDevice *_this, const char *mime_type);
 
 /* General purpose clipboard text callback */
-const void *SDL_ClipboardTextCallback(void *userdata, const char *mime_type, size_t *size);
+const void * SDLCALL SDL_ClipboardTextCallback(void *userdata, const char *mime_type, size_t *size);
 
 #endif /* SDL_clipboard_c_h_ */