Ticket #13008: patch-portable.cpp

File patch-portable.cpp, 618 bytes (added by afb@…, 17 years ago)

patch-portable.cpp

Line 
1--- ./src/portable.cpp.orig     2007-07-17 11:38:43.000000000 +0200
2+++ ./src/portable.cpp  2007-10-28 16:46:19.000000000 +0100
3@@ -373,7 +373,7 @@ void * portable_iconv_open(const char* t
4 size_t portable_iconv (void *cd, const char** inbuf,  size_t *inbytesleft, 
5                                        char** outbuf, size_t *outbytesleft)
6 {
7-#if ((defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109)) || defined(_OS_SOLARIS_))
8+#if ((defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109) && !defined(__APPLE__)) || defined(_OS_SOLARIS_))
9 #define CASTNEEDED(x) (x)
10 #else
11 #define CASTNEEDED(x) (char **)(x)