]> git.stg.codes - stg.git/commitdiff
Another iconv...
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 1 Jun 2015 20:11:50 +0000 (23:11 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 1 Jun 2015 20:11:50 +0000 (23:11 +0300)
projects/sgconf/common_sg.cpp

index 27f0b9f9af8b6bc01c899cdbe3be705c11c2b046..9c1b7283705bdf3cbc1652811e847c463b55cab9 100644 (file)
@@ -259,7 +259,7 @@ if (cd == (iconv_t) -1)
     exit(ICONV_ERR_CODE);
     }
 
-#if defined(FREE_BSD) || defined(FREE_BSD5)
+#if defined(CONST_ICONV)
 nconv = iconv(cd, (const char **)&inbuf, &insize, &outbuf, &outsize);
 #else
 nconv = iconv(cd, &inbuf, &insize, &outbuf, &outsize);