unstrip-downed Class 2 error messages table
[efax.git] / config.h
1 #ifndef _EFAX_CONFIG_H
2 #define _EFAX_CONFIG_H 1
3
4
5 #ifdef UCCOMPAT
6
7 /* Handle non-existing atoi() */
8 #include <limits.h>
9 #define atoi(s) ({ \
10                 long _atoi_l=strtol((s), (char **)NULL, 10); \
11                 /**/ if (_atoi_l<INT_MIN) _atoi_l=INT_MIN; \
12                 else if (_atoi_l>INT_MAX) _atoi_l=INT_MAX; \
13                 _atoi_l; \
14                 })
15
16 #include <stdio.h>
17 extern size_t fread( void *ptr, size_t size, size_t nmemb, FILE *stream);
18 extern size_t fwrite( const void *ptr, size_t size, size_t nmemb, FILE *stream);
19
20 #include <stdio.h>
21 #include <stdarg.h>
22 extern int vfprintf(FILE *stream, const char *format, va_list ap);
23
24 #include <unistd.h>
25 extern pid_t getpid(void);
26
27 #endif
28
29
30 #endif /* _EFAX_CONFIG_H */