00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _LOG4CPP_PORTABILITY_HH
00011 #define _LOG4CPP_PORTABILITY_HH
00012
00013 #if defined (_MSC_VER) || defined(__BORLANDC__)
00014 # if defined (LOG4CPP_STLPORT_AND_BOOST_BUILD)
00015 # include <log4cpp/config-win32-stlport-boost.h>
00016 # else
00017 # include <log4cpp/config-win32.h>
00018 # endif
00019 #else
00020 #if defined(__OPENVMS__)
00021 # include <log4cpp/config-openvms.h>
00022 #else
00023 # if defined(__MINGW32__)
00024 # include <log4cpp/config-MinGW32.h>
00025 # else
00026 # include <log4cpp/config.h>
00027 # endif
00028 #endif
00029 #endif
00030
00031 #include <log4cpp/Export.hh>
00032
00033 #if defined(_MSC_VER)
00034 # pragma warning( disable : 4786 ) // 255 char debug symbol limit
00035 # pragma warning( disable : 4290 ) // throw specifier not implemented
00036 # pragma warning( disable : 4251 ) // "class XXX should be exported"
00037 #endif
00038
00039 #ifndef LOG4CPP_HAVE_SSTREAM
00040 #include <strstream>
00041 namespace std {
00042 class LOG4CPP_EXPORT ostringstream : public ostrstream {
00043 public:
00044 std::string str();
00045 };
00046 }
00047 #endif
00048
00049 #endif