 |
Pol
Revision:cb584c9
|
Go to the documentation of this file. 12 #ifndef __CLIB_RAWTYPES_H 13 #define __CLIB_RAWTYPES_H 19 #define POSTSTRUCT_PACK __attribute__( ( __packed__ ) ) 21 #define POSTSTRUCT_PACK 25 typedef unsigned char u8;
26 typedef unsigned short u16;
27 typedef unsigned int u32;
29 typedef signed char s8;
30 typedef signed short s16;
31 typedef signed int s32;
34 typedef unsigned __int64
u64;
35 typedef signed __int64
s64;
38 typedef unsigned long long u64;
39 typedef signed long long s64;
45 static_assert(
sizeof(
u8 ) == 1,
"size missmatch" );
46 static_assert(
sizeof(
u16 ) == 2,
"size missmatch" );
47 static_assert(
sizeof(
u32 ) == 4,
"size missmatch" );
48 static_assert(
sizeof(
u64 ) == 8,
"size missmatch" );
49 static_assert(
sizeof(
s8 ) == 1,
"size missmatch" );
50 static_assert(
sizeof(
s16 ) == 2,
"size missmatch" );
51 static_assert(
sizeof(
s32 ) == 4,
"size missmatch" );
52 static_assert(
sizeof(
s64 ) == 8,
"size missmatch" );
58 static_assert(
sizeof(
wchar_t ) == 2,
"size missmatch" );
59 #elif defined( __GNUC__ ) 60 static_assert(
sizeof(
wchar_t ) == 4,
"size missmatch" );
62 #error unknown size for wchar_t