00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _LOG4CPP_PORTABILITYIMPL_HH
00010 #define _LOG4CPP_PORTABILITYIMPL_HH
00011
00012 #include <log4cpp/Portability.hh>
00013
00014 #ifdef LOG4CPP_CSTDLIB_NOT_IN_STD
00015 #include <cstdlib>
00016 namespace std {
00017 static inline char *getenv(const char *name) { return ::getenv(name); };
00018 static inline int atoi(const char *nptr) { return ::atoi(nptr); };
00019 static inline unsigned long int
00020 strtoul(const char *nptr, char **endptr, int base) {
00021 return ::strtol(nptr, endptr, base);
00022 };
00023 }
00024 #endif
00025
00026 #ifdef LOG4CPP_CSTRING_NOT_IN_STD
00027 #include <cstring>
00028 namespace std {
00029 static inline void *memmove(void *dest, const void *src, size_t n) {
00030 return ::memmove(dest, src, n);
00031 };
00032 }
00033 #endif
00034
00035 #endif // _LOG4CPP_PORTABILITYIMPL_HH