diff options
author | egladil <egladil@openttd.org> | 2007-11-07 21:35:33 +0000 |
---|---|---|
committer | egladil <egladil@openttd.org> | 2007-11-07 21:35:33 +0000 |
commit | 4e518e3cebdbcdf06a9b027d378b41c4aa79d8f6 (patch) | |
tree | be0a6d5de09021779c127a919cfe99eac6421412 /src/unix.cpp | |
parent | f5024f8c91899fe227483ef329b5998969b6bb23 (diff) | |
download | openttd-4e518e3cebdbcdf06a9b027d378b41c4aa79d8f6.tar.xz |
(svn r11389) -Fix [FS#1386]: Replace calls to deprecated API with newer ones and handle broken iconv declaration in OSX 10.5.
Diffstat (limited to 'src/unix.cpp')
-rw-r--r-- | src/unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix.cpp b/src/unix.cpp index 9808503dd..3933352e6 100644 --- a/src/unix.cpp +++ b/src/unix.cpp @@ -230,7 +230,7 @@ static const char *convert_tofrom_fs(iconv_t convd, const char *name) /* Work around buggy iconv implementation where inbuf is wrongly typed as * non-const. Correct implementation is at * http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html */ -#if defined (__GLIBC__) || defined (__GNU_LIBRARY__) +#ifdef HAVE_BROKEN_ICONV char *inbuf = (char*)name; #else const char *inbuf = name; |