diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index e1d49bd9fb..f1d4c56ea2 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -506,11 +506,7 @@ public: #define ICONV_FAILED(cres, bufLeft) (cres == (size_t)-1) #endif -#if ICONV_CONST -#define ICONV_CHAR_CAST(x) ((char **)(x)) -#else -#define ICONV_CHAR_CAST(x) ((const char **)(x)) -#endif +#define ICONV_CHAR_CAST(x) ((ICONV_CONST char **)(x)) // ---------------------------------------------------------------------------- // IC_CharSet: encapsulates an iconv character set