1 | #define HAVE_STDDEF_H 1 |
2 | #define HAVE_STDINT_H 1 |
3 | |
4 | #ifdef __has_builtin |
5 | # if !defined(HAVE_BUILTIN_EXPECT) && __has_builtin(__builtin_expect) |
6 | # define HAVE_BUILTIN_EXPECT 1 |
7 | # endif |
8 | # if !defined(HAVE_BUILTIN_CTZ) && __has_builtin(__builtin_ctzll) |
9 | # define HAVE_BUILTIN_CTZ 1 |
10 | # endif |
11 | #elif defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 4) |
12 | # ifndef HAVE_BUILTIN_EXPECT |
13 | # define HAVE_BUILTIN_EXPECT 1 |
14 | # endif |
15 | # ifndef HAVE_BUILTIN_CTZ |
16 | # define HAVE_BUILTIN_CTZ 1 |
17 | # endif |
18 | #endif |
19 | |
20 | #ifdef __has_include |
21 | # if !defined(HAVE_BYTESWAP_H) && __has_include(<byteswap.h>) |
22 | # define HAVE_BYTESWAP_H 1 |
23 | # endif |
24 | # if !defined(HAVE_UNISTD_H) && __has_include(<unistd.h>) |
25 | # define HAVE_UNISTD_H 1 |
26 | # endif |
27 | # if !defined(HAVE_SYS_ENDIAN_H) && __has_include(<sys/endian.h>) |
28 | # define HAVE_SYS_ENDIAN_H 1 |
29 | # endif |
30 | # if !defined(HAVE_SYS_MMAN_H) && __has_include(<sys/mman.h>) |
31 | # define HAVE_SYS_MMAN_H 1 |
32 | # endif |
33 | # if !defined(HAVE_SYS_UIO_H) && __has_include(<sys/uio.h>) |
34 | # define HAVE_SYS_UIO_H 1 |
35 | # endif |
36 | #endif |
37 | |
38 | #ifndef SNAPPY_IS_BIG_ENDIAN |
39 | # ifdef __s390x__ |
40 | # define SNAPPY_IS_BIG_ENDIAN 1 |
41 | # elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
42 | # define SNAPPY_IS_BIG_ENDIAN 1 |
43 | # endif |
44 | #endif |
45 | |