00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _LOG4CPP_PORTABILITY_HH
00011 #define _LOG4CPP_PORTABILITY_HH
00012
00013 #if defined (_MSC_VER) || defined(__BORLANDC__)
00014 # include <log4cpp/config-win32.h>
00015 #else
00016 #if defined(__OPENVMS__)
00017 # include <log4cpp/config-openvms.h>
00018 #else
00019 # include <log4cpp/config.h>
00020 #endif
00021 #endif
00022
00023 #if defined(_MSC_VER)
00024 # pragma warning( disable : 4786 )
00025 #endif
00026
00027 #ifndef LOG4CPP_HAVE_STRCASECMP
00028 #ifdef LOG4CPP_HAVE_STRICMP
00029
00030 #include <string.h>
00031 namespace log4cpp {
00032 inline int strcasecmp(const char *s1, const char *s2) {
00033 return stricmp(s1, s2);
00034 };
00035 }
00036
00037 #else
00038 #error no strcasecmp alternative for this platform implemented yet
00039 #endif // LOG4CPP_HAVE_STRICMP
00040 #endif // LOG4CPP_HAVE_STRCASECMP
00041
00042 #endif