From 4861bc0949b0556515877f86a05d04f914d3497b Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 20 Mar 2006 06:11:47 +0000 Subject: [PATCH] Handle broken iconv headers (BSD and derivatives). ICONV_CONST is defined in config.h by the autotools, if HAVE_ICONV is defined, define ICONV_CONST to either const or leave it empty for other OSes. --- stepmania/src/RageUtil_CharConversions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil_CharConversions.cpp b/stepmania/src/RageUtil_CharConversions.cpp index e43bbe41bd..187e403d28 100644 --- a/stepmania/src/RageUtil_CharConversions.cpp +++ b/stepmania/src/RageUtil_CharConversions.cpp @@ -52,7 +52,7 @@ static bool ConvertFromCharset( RString &txt, const char *charset ) } /* Copy the string into a char* for iconv */ - char *txtin = const_cast( txt.data() ); + ICONV_CONST char *txtin = const_cast( txt.data() ); size_t inleft = txt.size(); /* Create a new string with enough room for the new conversion */