Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Portability.hh

Go to the documentation of this file.
00001 /*
00002  * Portability.hh
00003  *
00004  * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00005  * Copyright 2001, Bastiaan Bakker. All rights reserved.
00006  *
00007  * See the COPYING file for the terms of usage and distribution.
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

Generated at Mon Jan 28 01:40:21 2002 for log4cpp by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001