9#ifndef _LOG4CPP_PORTABILITYIMPL_HH
10#define _LOG4CPP_PORTABILITYIMPL_HH
14#ifdef LOG4CPP_CSTDLIB_NOT_IN_STD
18 return ::getenv(
name);
20 static inline int atoi(
const char*
nptr) {
26 static inline void abort(
void) {
33#ifdef LOG4CPP_CSTRING_NOT_IN_STD
42#ifdef LOG4CPP_CTIME_NOT_IN_STD
49 return ::localtime(
timer);
57#ifdef LOG4CPP_CMATH_NOT_IN_STD
60 static inline int abs(
int i) {
67 template <
typename T>
const T&
min(
const T&
a,
const T&
b) {
71 template <
typename T>
const T&
max(
const T&
a,
const T&
b) {
#define LOG4CPP_UNIQUE_PTR
Definition Portability.hh:75
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
void localtime(const ::time_t *time, ::tm *t)
Definition Localtime.cpp:27
const T & max(const T &a, const T &b)
Definition PortabilityImpl.hh:71
const T & min(const T &a, const T &b)
Definition PortabilityImpl.hh:67
Definition Portability.hh:61