# SDL: Renamed SDL\_PROP\_IOSTREAM\_STDIO\_HANDLE\_POINTER to SDL\_PROP\_IOSTREAM\_STDIO\_FILE\_POINTER

**URL:** <https://discourse.libsdl.org/t/sdl-renamed-sdl-prop-iostream-stdio-handle-pointer-to-sdl-prop-iostream-stdio-file-pointer/49955>\
**Category:** SDL Commits\
**Created:** [March 19, 2024, 4:58am UTC](https://discourse.libsdl.org/t/sdl-renamed-sdl-prop-iostream-stdio-handle-pointer-to-sdl-prop-iostream-stdio-file-pointer/49955 "2024-03-19T04:58: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:** [March 19, 2024, 4:58am UTC](https://discourse.libsdl.org/t/sdl-renamed-sdl-prop-iostream-stdio-handle-pointer-to-sdl-prop-iostream-stdio-file-pointer/49955/1 "2024-03-19T04:58:02Z")

</div>

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

```diff
From 24ec1c09b909a0b42ba9ff020cdae95322ad3342 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 18 Mar 2024 21:56:11 -0700
Subject: [PATCH] Renamed SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER to
 SDL_PROP_IOSTREAM_STDIO_FILE_POINTER

---
 include/SDL3/SDL_iostream.h | 8 ++++----
 src/file/SDL_iostream.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/SDL3/SDL_iostream.h b/include/SDL3/SDL_iostream.h
index cdffa2b6c6b30..ffe25fb21aa4c 100644
--- a/include/SDL3/SDL_iostream.h
+++ b/include/SDL3/SDL_iostream.h
@@ -169,7 +169,7 @@ typedef struct SDL_IOStream SDL_IOStream;
  * to a win32 `HANDLE`, that this SDL_IOStream is using to access the
  * filesystem. If the program isn't running on Windows, or SDL used some
  * other method to access the filesystem, this property will not be set.
- * - `SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER`: a pointer, that can be cast to
+ * - `SDL_PROP_IOSTREAM_STDIO_FILE_POINTER`: a pointer, that can be cast to
  * a stdio `FILE *`, that this SDL_IOStream is using to access the
  * filesystem. If SDL used some other method to access the filesystem, this
  * property will not be set. PLEASE NOTE that if SDL is using a different C
@@ -197,9 +197,9 @@ typedef struct SDL_IOStream SDL_IOStream;
  */
 extern DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromFile(const char *file, const char *mode);
 
-#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER "SDL.iostream.windows.handle"
-#define SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER "SDL.iostream.stdio.handle"
-#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER "SDL.iostream.android.aasset"
+#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER "SDL.iostream.windows.handle"
+#define SDL_PROP_IOSTREAM_STDIO_FILE_POINTER "SDL.iostream.stdio.file"
+#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER "SDL.iostream.android.aasset"
 
 /**
  * Use this function to prepare a read-write memory buffer for use with
diff --git a/src/file/SDL_iostream.c b/src/file/SDL_iostream.c
index d2fd86ade0690..d88c2f8f00497 100644
--- a/src/file/SDL_iostream.c
+++ b/src/file/SDL_iostream.c
@@ -430,7 +430,7 @@ static SDL_IOStream *SDL_IOFromFP(FILE *fp, SDL_bool autoclose)
     } else {
         const SDL_PropertiesID props = SDL_GetIOProperties(iostr);
         if (props) {
- SDL_SetProperty(props, SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER, fp);
+ SDL_SetProperty(props, SDL_PROP_IOSTREAM_STDIO_FILE_POINTER, fp);
         }
     }
 

```
