SDL: fix CI windows errors because of SDL_RWFromFP()

From de0cca91d4abf8fb61032ba624d1a2c0936b73b9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 25 Nov 2022 22:55:30 +0300
Subject: [PATCH] fix CI windows errors because of SDL_RWFromFP()

---
 src/file/SDL_rwops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/file/SDL_rwops.c b/src/file/SDL_rwops.c
index 2b48e557ddd8..4d2a8238a1d2 100644
--- a/src/file/SDL_rwops.c
+++ b/src/file/SDL_rwops.c
@@ -525,7 +525,8 @@ mem_close(SDL_RWops * context)
 
 /* Functions to create SDL_RWops structures from various data sources */
 
-#ifdef HAVE_STDIO_H
+#if defined(HAVE_STDIO_H) && !(defined(__WIN32__) || defined(__GDK__))
+/* this is used a helper for SDL_RWFromFile(), but not for windows. */
 static SDL_RWops *
 SDL_RWFromFP(void *fp, SDL_bool autoclose)
 {