]>
Commit | Line | Data |
---|---|---|
5e174a51 | 1 | /* |
e30c654b | 2 | * Replacement stdint.h because GCC doesn't come with it yet (C99) |
5e174a51 | 3 | */ |
4 | ||
e30c654b | 5 | #ifndef __STDINT_H |
6 | #define __STDINT_H | |
5e174a51 | 7 | |
e30c654b | 8 | typedef signed char int8_t; |
9 | typedef short int int16_t; | |
10 | typedef int int32_t; | |
11 | typedef long long int int64_t; | |
5e174a51 | 12 | |
e30c654b | 13 | typedef unsigned char uint8_t; |
14 | typedef unsigned short int uint16_t; | |
15 | typedef unsigned int uint32_t; | |
5e174a51 | 16 | typedef unsigned long long int uint64_t; |
17 | ||
e30c654b | 18 | typedef int int_fast16_t; |
19 | typedef int int_fast32_t; | |
5e174a51 | 20 | |
e30c654b | 21 | typedef unsigned int uint_fast16_t; |
22 | typedef unsigned int uint_fast32_t; | |
5e174a51 | 23 | |
e30c654b | 24 | typedef int intptr_t; |
25 | typedef unsigned int uintptr_t; | |
5e174a51 | 26 | |
e30c654b | 27 | #define __INT64_C(c) c ## LL |
28 | #define __UINT64_C(c) c ## ULL | |
5e174a51 | 29 | |
e30c654b | 30 | #define __PRI64_RANK "ll" |
31 | #define __PRIFAST_RANK "" | |
32 | #define __PRIPTR_RANK "" | |
5e174a51 | 33 | |
e30c654b | 34 | #endif /* __STDINT_H */ |