#ifndef SHORTTYPES_H #define SHORTTYPES_H #include #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 */