#include <iconv.h>
+#include <algorithm>
+
#include <cstdlib>
#include <cstdarg>
#include <cstdio>
inBuf[source.length()] = 0;
-#if defined(FREE_BSD) || defined(FREE_BSD5) || defined(WIN32)
+#if defined(CONST_ICONV)
const char * srcPos = inBuf;
#else
char * srcPos = inBuf;