4 #ifndef RUDIMENTS_INTTYPES_H
5 #define RUDIMENTS_INTTYPES_H
7 #include <rudiments/private/config.h>
9 #if defined(RUDIMENTS_HAVE_STDINT_H)
11 #elif defined(RUDIMENTS_HAVE_SYS_BITYPES_H)
16 #include <sys/bitypes.h>
17 #elif defined(RUDIMENTS_HAVE_INTTYPES_H)
21 #ifndef RUDIMENTS_HAVE_INT8_T
22 typedef signed char int8_t;
24 #ifndef RUDIMENTS_HAVE_UINT8_T
25 typedef unsigned char uint8_t;
27 #ifndef RUDIMENTS_HAVE_INT16_T
28 typedef signed short int16_t;
30 #ifndef RUDIMENTS_HAVE_UINT16_T
31 typedef unsigned short uint16_t;
33 #ifndef RUDIMENTS_HAVE_INT32_T
34 typedef signed int int32_t;
36 #ifndef RUDIMENTS_HAVE_UINT32_T
37 typedef unsigned int uint32_t;
39 #ifndef RUDIMENTS_HAVE_INT64_T
40 typedef signed long long int64_t;
42 #ifndef RUDIMENTS_HAVE_UINT64_T
43 typedef unsigned long long uint64_t;