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 _LOG4CPP_PORTABILITY_HH
11 #define _LOG4CPP_PORTABILITY_HH
12 
13 #if defined (_MSC_VER) || defined(__BORLANDC__)
14 # if defined (LOG4CPP_STLPORT_AND_BOOST_BUILD)
16 # else
17 # include <log4cpp/config-win32.h>
18 # endif
19 #else
20 #if defined(__OPENVMS__)
21 # include <log4cpp/config-openvms.h>
22 #else
23 # if defined(__MINGW32__)
24 # include <log4cpp/config-MinGW32.h>
25 # else
26 # include <log4cpp/config.h>
27 # endif
28 #endif
29 #endif
30 
31 #include <log4cpp/Export.hh>
32 
33 #if defined(_MSC_VER)
34 # pragma warning( disable : 4786 ) // 255 char debug symbol limit
35 # pragma warning( disable : 4290 ) // throw specifier not implemented
36 # pragma warning( disable : 4251 ) // "class XXX should be exported"
37 #endif
38 
39 #ifdef __APPLE__
40 # include <sstream>
41 #else
42 # ifndef LOG4CPP_HAVE_SSTREAM
43 # include <strstream>
44  namespace std {
45  class LOG4CPP_EXPORT ostringstream : public ostrstream {
46  public:
47  std::string str();
48  };
49  };
50 # endif // LOG4CPP_HAVE_SSTREAM
51 #endif // _APPLE_
52 
53 #endif
#define LOG4CPP_EXPORT
Definition: Export.hh:26


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00