From 0c6f2193430d5d47e08a063f77a350dd8b57df15 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 6 May 2022 14:56:10 +0300
Subject: [PATCH] fixed preprocessor checks for _MSC_VER warning pragmas.
---
SDL_ttf.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/SDL_ttf.c b/SDL_ttf.c
index 6e3aa27..f3e0353 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -2046,7 +2046,6 @@ static FT_Error Load_Glyph(TTF_Font *font, c_glyph *cached, int want, int transl
cached->sz_rows += 2 * 8;
}
-
cached->stored |= CACHED_METRICS;
}
@@ -2215,7 +2214,7 @@ static FT_Error Load_Glyph(TTF_Font *font, c_glyph *cached, int want, int transl
}
/* FT_RENDER_MODE_MONO and src->pixel_mode MONO */
-#ifdef _WIN32
+#ifdef _MSC_VER
#pragma warning(push, 1)
#pragma warning(disable:4127)
#endif
@@ -2290,8 +2289,6 @@ static FT_Error Load_Glyph(TTF_Font *font, c_glyph *cached, int want, int transl
} \
}
-
-
if (mono) {
if (src->pixel_mode == FT_PIXEL_MODE_MONO) {
while (quotient--) {
@@ -2364,7 +2361,7 @@ static FT_Error Load_Glyph(TTF_Font *font, c_glyph *cached, int want, int transl
}
}
}
-#ifdef _WIN32
+#ifdef _MSC_VER
#pragma warning(pop)
#endif