log4shib 2.0.0

Portability.hh
Go to the documentation of this file.
1/*
2 * Portability.hh
3 *
4 * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5 * Copyright 2001, Bastiaan Bakker. All rights reserved.
6 *
7 * See the COPYING file for the terms of usage and distribution.
8 */
9
10#ifndef _LOG4SHIB_PORTABILITY_HH
11#define _LOG4SHIB_PORTABILITY_HH
12
13#if defined (_MSC_VER) || defined(__BORLANDC__)
14# if defined (LOG4SHIB_STLPORT_AND_BOOST_BUILD)
15# include <log4shib/config-win32-stlport-boost.h>
16# else
17# include <log4shib/config-win32.h>
18# endif
19#else
20#if defined(__OPENVMS__)
21# include <log4shib/config-openvms.h>
22#else
23# include <log4shib/config.h>
24#endif
25#endif
26
27#include <log4shib/Export.hh>
28
29#if defined(_MSC_VER)
30# pragma warning( disable : 4786 ) // 255 char debug symbol limit
31# pragma warning( disable : 4290 ) // throw specifier not implemented
32# pragma warning( disable : 4251 ) // "class XXX should be exported"
33#endif
34
35#ifndef LOG4SHIB_HAVE_SSTREAM
36#include <strstream>
37 namespace std {
38 class LOG4SHIB_EXPORT ostringstream : public ostrstream {
39 public:
40 std::string str();
41 };
42}
43#endif
44
45#endif
Export.hh
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition: Export.hh:11
std::ostringstream
Definition: Portability.hh:38
std
Definition: Portability.hh:37