You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2007/11/08 21:49:49 UTC

svn commit: r593300 - in /logging/log4cxx/trunk/src/main: cpp/logstream.cpp include/log4cxx/private/log4cxx_private.hw

Author: carnold
Date: Thu Nov  8 12:49:49 2007
New Revision: 593300

URL: http://svn.apache.org/viewvc?rev=593300&view=rev
Log:
LOGCXX-18: Add preprocessor macro for memsetting ios_base

Modified:
    logging/log4cxx/trunk/src/main/cpp/logstream.cpp
    logging/log4cxx/trunk/src/main/include/log4cxx/private/log4cxx_private.hw

Modified: logging/log4cxx/trunk/src/main/cpp/logstream.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/cpp/logstream.cpp?rev=593300&r1=593299&r2=593300&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/cpp/logstream.cpp (original)
+++ logging/log4cxx/trunk/src/main/cpp/logstream.cpp Thu Nov  8 12:49:49 2007
@@ -23,7 +23,7 @@
 
 logstream_base::logstream_ios_base::logstream_ios_base(std::ios_base::fmtflags initval, 
                     int initsize) {
-#if defined(_MSC_VER)
+#if LOG4CXX_MEMSET_IOS_BASE
 	//
 	//    the destructor for std::ios_base in the MSVC STL
 	//        releases a pointer that was not initialized in the constructor.

Modified: logging/log4cxx/trunk/src/main/include/log4cxx/private/log4cxx_private.hw
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/include/log4cxx/private/log4cxx_private.hw?rev=593300&r1=593299&r2=593300&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/include/log4cxx/private/log4cxx_private.hw (original)
+++ logging/log4cxx/trunk/src/main/include/log4cxx/private/log4cxx_private.hw Thu Nov  8 12:49:49 2007
@@ -66,5 +66,9 @@
 #endif
 #endif
 
+#if defined(_MSC_VER)
+#define LOG4CXX_MEMSET_IOS_BASE 1
+#endif
+
 
 #endif