9 #ifndef _LOG4CPP_PORTABILITYIMPL_HH 10 #define _LOG4CPP_PORTABILITYIMPL_HH 14 #ifdef LOG4CPP_CSTDLIB_NOT_IN_STD 17 static inline char *getenv(
const char *name) { return ::getenv(name); };
18 static inline int atoi(
const char *nptr) { return ::atoi(nptr); };
19 static inline unsigned long int 20 strtoul(
const char *nptr,
char **endptr,
int base) {
21 return ::strtol(nptr, endptr, base);
23 static inline void abort(
void) { ::abort(); };
28 #ifdef LOG4CPP_CSTRING_NOT_IN_STD 31 static inline void *memmove(
void *dest,
const void *src,
size_t n) {
32 return ::memmove(dest, src, n);
37 #ifdef LOG4CPP_CTIME_NOT_IN_STD 40 static inline size_t strftime(
char *strDest,
size_t maxsize,
const char *format,
const struct tm *timeptr ) {
41 return ::strftime(strDest,maxsize,format,timeptr);
50 #ifdef LOG4CPP_CMATH_NOT_IN_STD 53 static inline int abs(
int i) { return ::abs(i); }
59 template<
typename T>
const T&
min(
const T& a,
const T& b)
64 template<
typename T>
const T&
max(
const T& a,
const T& b)
70 #endif // _LOG4CPP_PORTABILITYIMPL_HH const T & min(const T &a, const T &b)
void localtime(const ::time_t *time,::tm *t)
const T & max(const T &a, const T &b)