8
#if defined HAVE_STDINT_H
12
#if defined HAVE_INTTYPES_H
18
#define CHECK(x) !(x) ? (abort(), 1) : 0
20
/* Define __UNUSED__ that also other compilers than gcc can run the tests. */
23
#define __UNUSED__ __attribute__((__unused__))
28
/* Define __FASTCALL__ so that other compilers than gcc can run the tests. */
31
#define __FASTCALL__ __fastcall
33
#define __FASTCALL__ __attribute__((fastcall))
36
/* Prefer MAP_ANON(YMOUS) to /dev/zero, since we don't need to keep a
39
# undef HAVE_MMAP_DEV_ZERO
41
# include <sys/mman.h>
43
# define MAP_FAILED -1
45
# if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
46
# define MAP_ANONYMOUS MAP_ANON
52
#ifdef HAVE_MMAP_DEV_ZERO
54
# include <sys/mman.h>
56
# define MAP_FAILED -1
71
/* Tru64 UNIX kludge. */
72
#if defined(__alpha__) && defined(__osf__)
73
/* Tru64 UNIX V4.0 doesn't support %lld/%lld, but long is 64-bit. */
85
/* PA HP-UX kludge. */
86
#if defined(__hppa__) && defined(__hpux__) && !defined(PRIuPTR)
92
/* IRIX 6.5 <inttypes.h> provides all definitions, but only for C99
96
#if (_MIPS_SZLONG == 32)
100
/* This doesn't match <inttypes.h>, which always has "lld" here, but the
101
arguments are uint64_t, int64_t, which are unsigned long, long for
102
64-bit in <sgidefs.h>. */
103
#if (_MIPS_SZLONG == 64)
107
/* This doesn't match <inttypes.h>, which has "u" here, but the arguments
108
are uintptr_t, which is always unsigned long. */
112
/* Solaris < 10 kludge. */
113
#if defined(__sun__) && defined(__svr4__) && !defined(PRIuPTR)
114
#if defined(__arch64__) || defined (__x86_64__)
126
#define PRIu64 "I64u"
127
#define PRId64 "I64d"