Jira LOGCXX-404
simpledateformat must include locale on Mac OS/C++11

I ended up just including locale in the header file unconditionally. The 
delayed #include wouldn’t fly.

diff --git a/src/main/include/log4cxx/helpers/simpledateformat.h 
b/src/main/include/log4cxx/helpers/simpledateformat.h
index 9c27f68..76fb784 100644
--- a/src/main/include/log4cxx/helpers/simpledateformat.h
+++ b/src/main/include/log4cxx/helpers/simpledateformat.h
@@ -29,7 +29,9 @@
 #include <vector>
 #include <time.h>
 
-namespace std { class locale; }
+#include <locale>
+
+using std::locale;
 
 namespace log4cxx
 {

Reply via email to