]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/common.cpp
Ticket 26. The const MODULE_SETTINGS & ms parameter added to the
[stg.git] / stglibs / common.lib / common.cpp
index 8c3eb1a5e62dee205e800cf2a9cb07ed6dec26da..22ec354b002442eab12f55b8868ddee7254669e8 100644 (file)
@@ -47,6 +47,8 @@
 
 #include <iconv.h>
 
+#include <algorithm>
+
 #include <cstdlib>
 #include <cstdarg>
 #include <cstdio>
@@ -897,7 +899,7 @@ strncpy(inBuf, source.c_str(), source.length());
 
 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;