Portability.hh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #ifndef _LOG4CPP_PORTABILITY_HH
  10. #define _LOG4CPP_PORTABILITY_HH
  11. #if defined (_MSC_VER) || defined(__BORLANDC__)
  12. # if defined (LOG4CPP_STLPORT_AND_BOOST_BUILD)
  13. # include <log4cpp/config-win32-stlport-boost.h>
  14. # else
  15. # include <log4cpp/config-win32.h>
  16. # endif
  17. #else
  18. #if defined(__OPENVMS__)
  19. # include <log4cpp/config-openvms.h>
  20. #else
  21. # if defined(__MINGW32__)
  22. # include <log4cpp/config-MinGW32.h>
  23. # else
  24. # include <log4cpp/config.h>
  25. # endif
  26. #endif
  27. #endif
  28. #include <log4cpp/Export.hh>
  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. #ifndef LOG4CPP_HAVE_SSTREAM
  35. #include <strstream>
  36. namespace std {
  37. class LOG4CPP_EXPORT ostringstream : public ostrstream {
  38. public:
  39. std::string str();
  40. };
  41. }
  42. #endif
  43. # define LOG4CPP_NS_BEGIN namespace log4cpp_GenICam {
  44. # define LOG4CPP_NS_END }
  45. # define LOG4CPP_NS log4cpp_GenICam
  46. #endif