From 45638124671a6485df3035f376e01ae1e41b31a6 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Sun, 29 May 2016 15:25:06 -0700 Subject: [PATCH] Define ICONV_SOURCE_TYPE properly for Minix --- src/core/codeconvert.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/codeconvert.cpp b/src/core/codeconvert.cpp index 07a0425..1ffd4c5 100755 --- a/src/core/codeconvert.cpp +++ b/src/core/codeconvert.cpp @@ -61,7 +61,11 @@ #define TSS_USE_UCS2_CCONV16 (!(HAVE_ICONV_H) && WCHAR_REP_IS_UCS2 && WCHAR_IS_16_BITS) #define TSS_USE_UCS2_CCONV32 (!(HAVE_ICONV_H) && WCHAR_REP_IS_UCS2 && WCHAR_IS_32_BITS) -#define ICONV_SOURCE_TYPE char +#ifdef __minix__ +# define ICONV_SOURCE_TYPE const char +#else +# define ICONV_SOURCE_TYPE char +#endif //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Static Data