blob: 7b2df5824f39f821071eea0f30d672cc51620e73 (
plain)
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
|
#ifndef SHORTTYPES_H
#define SHORTTYPES_H
#include <limits.h>
#if CHAR_BIT != 8
#error "CHAR_BIT != 8"
#endif
#if USHRT_MAX != 65535
#error "USHRT_MAX != 65535"
#endif
#if UINT_MAX != 4294967295U
#error "UINT_MAX != 4294967295U"
#endif
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
#ifdef ULLONG_MAX
#if ULLONG_MAX == 18446744073709551615ULL
typedef signed long long s64;
typedef unsigned long long u64;
#else
#error "ULLONG_MAX != 18446744073709551615ULL"
#endif
#else
#error "no long long type"
#endif
#endif /* SHORTTYPES_H */
|