git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 26. The 'moduleName' variable is defined and parameter 'moduleName' added
[stg.git]
/
stglibs
/
common.lib
/
common.cpp
diff --git
a/stglibs/common.lib/common.cpp
b/stglibs/common.lib/common.cpp
index 8c3eb1a5e62dee205e800cf2a9cb07ed6dec26da..22ec354b002442eab12f55b8868ddee7254669e8 100644
(file)
--- a/
stglibs/common.lib/common.cpp
+++ b/
stglibs/common.lib/common.cpp
@@
-47,6
+47,8
@@
#include <iconv.h>
#include <iconv.h>
+#include <algorithm>
+
#include <cstdlib>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <cstdio>
@@
-897,7
+899,7
@@
strncpy(inBuf, source.c_str(), source.length());
inBuf[source.length()] = 0;
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;
const char * srcPos = inBuf;
#else
char * srcPos = inBuf;