Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Portability.hh

Go to the documentation of this file.
00001 /*
00002  * Portability.hh
00003  *
00004  * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00005  * Copyright 2001, Bastiaan Bakker. All rights reserved.
00006  *
00007  * See the COPYING file for the terms of usage and distribution.
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 #    include <log4cpp/config.h>
00024 #endif
00025 #endif
00026 
00027 #include <log4cpp/Export.hh>
00028 
00029 #if defined(_MSC_VER)
00030 #    pragma warning( disable : 4786 ) // 255 char debug symbol limit
00031 #    pragma warning( disable : 4290 ) // throw specifier not implemented
00032 #    pragma warning( disable : 4251 ) // "class XXX should be exported"
00033 #endif
00034 
00035 #ifndef LOG4CPP_HAVE_SSTREAM
00036 #include <strstream>
00037 namespace std {
00038     class LOG4CPP_EXPORT ostringstream : public ostrstream {
00039         public:
00040         std::string str();
00041     };
00042 }
00043 #endif
00044 
00045 #endif

Generated on Fri Jul 29 14:07:33 2005 for log4cpp by  doxygen 1.4.2