From 25336d053a3a5c236010c52b332bfe87cefc5de0 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Tue, 27 Dec 2022 21:02:05 +0100
Subject: [PATCH] Remove underscore for _SDL_iconv_t And change the name, not
to have the same for pointer and data
---
include/SDL3/SDL_stdinc.h | 2 +-
src/stdlib/SDL_iconv.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h
index 790f58fa91bb..444c7d52abb8 100644
--- a/include/SDL3/SDL_stdinc.h
+++ b/include/SDL3/SDL_stdinc.h
@@ -602,7 +602,7 @@ extern DECLSPEC float SDLCALL SDL_tanf(float x);
#define SDL_ICONV_EINVAL (size_t)-4
/* SDL_iconv_* are now always real symbols/types, not macros or inlined. */
-typedef struct _SDL_iconv_t *SDL_iconv_t;
+typedef struct SDL_iconv_data_t *SDL_iconv_t;
extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode,
const char *fromcode);
extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd);
diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c
index 997c0bd70b16..a8a132bb9b68 100644
--- a/src/stdlib/SDL_iconv.c
+++ b/src/stdlib/SDL_iconv.c
@@ -106,7 +106,7 @@ enum
#define ENCODING_UCS4NATIVE ENCODING_UCS4LE
#endif
-struct _SDL_iconv_t
+struct SDL_iconv_data_t
{
int src_fmt;
int dst_fmt;