Apple's C runtime has the non-const iconv(), too.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 22 Aug 2011 14:25:11 -0400
changeset 5633 21a6e87905e3
parent 5632 f2aeea007e85
child 5634 093e60544778
Apple's C runtime has the non-const iconv(), too.
src/stdlib/SDL_iconv.c
--- a/src/stdlib/SDL_iconv.c	Mon Aug 22 13:41:35 2011 -0400
+++ b/src/stdlib/SDL_iconv.c	Mon Aug 22 14:25:11 2011 -0400
@@ -31,8 +31,8 @@
    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(__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2))
+#if defined(_XGP6) || defined(__APPLE__) || \
+    (defined(__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)))
 #define ICONV_INBUF_NONCONST
 #endif