/* $Id$ G N O K I I A Linux/Unix toolset and driver for Nokia mobile phones. Released under the terms of the GNU GPL, see file COPYING for more details. */ #ifndef __UCCOMPAT_H__ #define __UCCOMPAT_H__ #ifdef UCCOMPAT /* Handle non-existing atoi() */ #include #define atoi(s) ({ \ long _atoi_l=strtol((s), (char **)NULL, 10); \ /**/ if (_atoi_lINT_MAX) _atoi_l=INT_MAX; \ _atoi_l; \ }) #define strchr _Xstrchr #define strrchr _Xstrrchr #include #undef strchr #undef strrchr extern char * strchr __P ((const char *, int)); extern char * strrchr __P ((const char *, int)); extern pid_t getpid(void); #endif /* UCCOMPAT */ #endif /* __UCCOMPAT_H__ */