Commit 31916f11aa54f4157479d9c3354169399b1d56f1

Sam Lantinga 2020-05-27T09:22:12

Fixed compiler warning building on FreeBSD

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c
index ebb784e..fa133a8 100644
--- a/src/stdlib/SDL_iconv.c
+++ b/src/stdlib/SDL_iconv.c
@@ -37,7 +37,7 @@
    iconv() may or may not use const char ** for the inbuf param.
    If we get this wrong, it's just a warning, so no big deal.
 */
-#if defined(_XGP6) || defined(__APPLE__) || defined(__RISCOS__) || \
+#if defined(_XGP6) || defined(__APPLE__) || defined(__RISCOS__) || defined(__FREEBSD__) || \
     defined(__EMSCRIPTEN__) || \
     (defined(__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) || \
     (defined(_NEWLIB_VERSION)))