54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
/*
|
|
* Portability.hh
|
|
*
|
|
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
|
|
* Copyright 2001, Bastiaan Bakker. All rights reserved.
|
|
*
|
|
* See the COPYING file for the terms of usage and distribution.
|
|
*/
|
|
|
|
#ifndef _LOG4CPP_PORTABILITY_HH
|
|
#define _LOG4CPP_PORTABILITY_HH
|
|
|
|
#if defined (_MSC_VER) || defined(__BORLANDC__)
|
|
# if defined (LOG4CPP_STLPORT_AND_BOOST_BUILD)
|
|
# include <log4cpp/config-win32-stlport-boost.h>
|
|
# else
|
|
# include <log4cpp/config-win32.h>
|
|
# endif
|
|
#else
|
|
#if defined(__OPENVMS__)
|
|
# include <log4cpp/config-openvms.h>
|
|
#else
|
|
# if defined(__MINGW32__)
|
|
# include <log4cpp/config-MinGW32.h>
|
|
# else
|
|
# include <log4cpp/config.h>
|
|
# endif
|
|
#endif
|
|
#endif
|
|
|
|
#include <log4cpp/Export.hh>
|
|
|
|
#if defined(_MSC_VER)
|
|
# pragma warning( disable : 4786 ) // 255 char debug symbol limit
|
|
# pragma warning( disable : 4290 ) // throw specifier not implemented
|
|
# pragma warning( disable : 4251 ) // "class XXX should be exported"
|
|
#endif
|
|
|
|
#ifndef LOG4CPP_HAVE_SSTREAM
|
|
#include <strstream>
|
|
namespace std {
|
|
class LOG4CPP_EXPORT ostringstream : public ostrstream {
|
|
public:
|
|
std::string str();
|
|
};
|
|
}
|
|
#endif
|
|
|
|
# define LOG4CPP_NS_BEGIN namespace log4cpp_GenICam {
|
|
# define LOG4CPP_NS_END }
|
|
# define LOG4CPP_NS log4cpp_GenICam
|
|
|
|
#endif
|