-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompat.h
56 lines (43 loc) · 790 Bytes
/
compat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef COMPAT_H
#define COMPAT_H
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifndef INT32_MAX
# define INT32_MAX (2147483647)
#endif
#ifndef INT32_MIN
# define INT32_MIN (-2147483647-1)
#endif
#ifndef INT16_MAX
# define INT16_MAX (32767)
#endif
#ifndef INT16_MIN
# define INT16_MIN (-32767-1)
#endif
#ifndef INT8_MAX
# define INT8_MAX (127)
#endif
#ifndef INT8_MIN
# define INT8_MIN (-128)
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef HAVE_STRCASESTR
char *strcasestr (const char *haystack, const char *needle);
#endif
#ifndef HAVE_STRERROR_R
int strerror_r (int errnum, char *buf, size_t n);
#endif
void compat_cleanup ();
#ifdef __cplusplus
}
#endif
#endif