28 #ifndef _LOG4TANGO_PORTABILITYIMPL_H
29 #define _LOG4TANGO_PORTABILITYIMPL_H
33 #ifdef LOG4TANGO_CSTDLIB_NOT_IN_STD
36 static inline char *getenv(
const char *name) { return ::getenv(name); };
37 static inline int atoi(
const char *nptr) { return ::atoi(nptr); };
38 static inline unsigned long int
39 strtoul(
const char *nptr,
char **endptr,
int base) {
40 return ::strtol(nptr, endptr, base);
45 #ifdef LOG4TANGO_CSTRING_NOT_IN_STD
48 static inline void *memmove(
void *dest,
const void *src,
size_t n) {
49 return ::memmove(dest, src, n);
54 #ifdef LOG4TANGO_CTIME_NOT_IN_STD
57 static inline size_t strftime(
char *strDest,
size_t maxsize,
const char *format,
const struct tm *timeptr ) {
58 return ::strftime(strDest,maxsize,format,timeptr);
60 static inline struct tm *localtime(
const time_t *timer ) { return ::localtime(timer); }
64 #ifdef LOG4TANGO_CMATH_NOT_IN_STD
67 static inline int abs(
int i) { return ::abs(i); }
71 #endif // _LOG4TANGO_PORTABILITYIMPL_H
Definition: LoggerStream.hh:178