2
0
Эх сурвалжийг харах

fix CI windows errors because of SDL_RWFromFP()

Ozkan Sezer 2 жил өмнө
parent
commit
de0cca91d4
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      src/file/SDL_rwops.c

+ 2 - 1
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)
 {