# SDL: fix CI windows errors again (because of unused stdio reader callbacks.)

**URL:** <https://discourse.libsdl.org/t/sdl-fix-ci-windows-errors-again-because-of-unused-stdio-reader-callbacks/40600>\
**Category:** SDL Commits\
**Created:** [November 25, 2022, 8:16pm UTC](https://discourse.libsdl.org/t/sdl-fix-ci-windows-errors-again-because-of-unused-stdio-reader-callbacks/40600 "2022-11-25T20:16:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [November 25, 2022, 8:16pm UTC](https://discourse.libsdl.org/t/sdl-fix-ci-windows-errors-again-because-of-unused-stdio-reader-callbacks/40600/1 "2022-11-25T20:16:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/f3fe8ea7ad07917bc2938ee3a421ef8be8e0824e>

```diff
From f3fe8ea7ad07917bc2938ee3a421ef8be8e0824e Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 25 Nov 2022 23:15:02 +0300
Subject: [PATCH] fix CI windows errors again (because of unused stdio reader
 callbacks.)

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

diff --git a/src/file/SDL_rwops.c b/src/file/SDL_rwops.c
index 4d2a8238a1d2..1d7dc462d3c9 100644
--- a/src/file/SDL_rwops.c
+++ b/src/file/SDL_rwops.c
@@ -306,7 +306,7 @@ windows_file_close(SDL_RWops * context)
 }
 #endif /* defined( __WIN32__ ) || defined( __GDK__ ) */
 
-#ifdef HAVE_STDIO_H
+#ifdef HAVE_STDIO_H && !(defined( __WIN32__ ) || defined( __GDK__ ))
 
 #ifdef HAVE_FOPEN64
 #define fopen fopen64

```
