7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Released under the terms of the GNU GPL, see file COPYING for more details.
13 #ifndef __UCCOMPAT_H__
14 #define __UCCOMPAT_H__
19 /* Handle non-existing atoi() */
22 long _atoi_l=strtol((s), (char **)NULL, 10); \
23 /**/ if (_atoi_l<INT_MIN) _atoi_l=INT_MIN; \
24 else if (_atoi_l>INT_MAX) _atoi_l=INT_MAX; \
28 #define strchr _Xstrchr
29 #define strrchr _Xstrrchr
33 extern char * strchr __P ((const char *, int));
34 extern char * strrchr __P ((const char *, int));
36 extern pid_t getpid(void);
37 extern int execv(const char *path, char *const argv[]);
42 #endif /* __UCCOMPAT_H__ */