From 5a25039d6f1b8c7284fbd74f0ec1051aa054aa17 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 30 Jul 2024 21:35:51 -0700
Subject: [PATCH] Renamed "struct _TTF_Font" to "struct TTF_Font"
Fixes https://github.com/libsdl-org/SDL_ttf/issues/372
(cherry picked from commit 22347419ee08e49d77411c680f15e314ef870ab7)
(cherry picked from commit 7185085beb39b9e8b17d18685a2a58a14b7c53ef)
---
SDL_ttf.c | 2 +-
SDL_ttf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/SDL_ttf.c b/SDL_ttf.c
index 30eaa320..1b64595c 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -244,7 +244,7 @@ typedef struct PosBuf {
} PosBuf_t;
/* The structure used to hold internal font information */
-struct _TTF_Font {
+struct TTF_Font {
/* Freetype2 maintains all sorts of useful info itself */
FT_Face face;
diff --git a/SDL_ttf.h b/SDL_ttf.h
index fc4170a7..78d4110c 100644
--- a/SDL_ttf.h
+++ b/SDL_ttf.h
@@ -161,7 +161,7 @@ extern DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(SDL_bool swapped);
/**
* The internal structure containing font information. Opaque data!
*/
-typedef struct _TTF_Font TTF_Font;
+typedef struct TTF_Font TTF_Font;
/**
* Initialize SDL_ttf.