wcstombs was not available even if it was defined to be.


Project: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/commit/fd8e4189
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/tree/fd8e4189
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/diff/fd8e4189

Branch: refs/heads/master
Commit: fd8e41897483c5efcbcf6bf10b452357a2150187
Parents: 10d7ddd
Author: Thorsten Schöning <[email protected]>
Authored: Sat Jul 2 13:05:27 2016 +0000
Committer: Thorsten Schöning <[email protected]>
Committed: Sat Jul 2 13:05:27 2016 +0000

----------------------------------------------------------------------
 src/main/cpp/charsetencoder.cpp | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4cxx/blob/fd8e4189/src/main/cpp/charsetencoder.cpp
----------------------------------------------------------------------
diff --git a/src/main/cpp/charsetencoder.cpp b/src/main/cpp/charsetencoder.cpp
index ca9b3fa..1b0c626 100644
--- a/src/main/cpp/charsetencoder.cpp
+++ b/src/main/cpp/charsetencoder.cpp
@@ -21,14 +21,20 @@
 #include <apr_xlate.h>
 #include <log4cxx/helpers/stringhelper.h>
 #include <log4cxx/helpers/transcoder.h>
+
 #if !defined(LOG4CXX)
 #define LOG4CXX 1
 #endif
+
 #include <log4cxx/private/log4cxx_private.h>
 #include <apr_portable.h>
 #include <log4cxx/helpers/mutex.h>
 #include <log4cxx/helpers/synchronized.h>
 
+#ifdef LOG4CXX_HAS_WCSTOMBS
+#include <stdlib.h>
+#endif
+
 using namespace log4cxx;
 using namespace log4cxx::helpers;
 

Reply via email to