summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortschoening <tschoening@13f79535-47bb-0310-9956-ffa450edef68>2016-07-02 13:05:27 +0000
committertschoening <tschoening@13f79535-47bb-0310-9956-ffa450edef68>2016-07-02 13:05:27 +0000
commitce9d475bfa13ba8875ed401a0eadbce8d8f69542 (patch)
tree8b28603d173fee6e90f63db9327502e9883bdafa
parent9504fe71e8f78026827ae49206fec2e3efe876f3 (diff)
downloadlog4cxx-ce9d475bfa13ba8875ed401a0eadbce8d8f69542.tar.gz
wcstombs was not available even if it was defined to be.
git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1751058 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/main/cpp/charsetencoder.cpp6
1 files changed, 6 insertions, 0 deletions
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;