00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _LOG4TANGO_PORTABILITY_H
00029 #define _LOG4TANGO_PORTABILITY_H
00030
00031 #if defined (_MSC_VER) || defined(__BORLANDC__)
00032 # include <log4tango/config-win32.h>
00033 #else
00034 # include <log4tango/config.h>
00035 #endif
00036
00037 #include <log4tango/Export.hh>
00038
00039 #if defined(_MSC_VER)
00040 # pragma warning( disable : 4786 ) // 255 char debug symbol limit
00041 # pragma warning( disable : 4290 ) // throw specifier not implemented
00042 # pragma warning( disable : 4251 ) // "class XXX should be exported"
00043
00044 #define LOG4TANGO_UNUSED(var) var
00045 #else
00046 #ifdef __GNUC__
00047 #define LOG4TANGO_UNUSED(var) var __attribute__ ((unused))
00048 #else
00049 #define LOG4TANGO_UNUSED(var) var
00050 #endif
00051 #endif
00052
00053 #ifndef LOG4TANGO_HAVE_SSTREAM
00054 #include <strstream>
00055 namespace std {
00056 class LOG4TANGO_EXPORT ostringstream : public ostrstream {
00057 public:
00058 std::string str();
00059 void str (const char*);
00060 };
00061 }
00062 #endif // LOG4TANGO_HAVE_SSTREAM
00063
00064 #endif // _LOG4TANGO_PORTABILITY_H