2017-11-24 23:41:14 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
typedef __signed__ char __s8;
|
|
|
|
typedef unsigned char __u8;
|
|
|
|
|
|
|
|
typedef __signed__ short __s16;
|
|
|
|
typedef unsigned short __u16;
|
|
|
|
|
|
|
|
typedef __signed__ int __s32;
|
|
|
|
typedef unsigned int __u32;
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
__extension__ typedef __signed__ long long __s64;
|
|
|
|
__extension__ typedef unsigned long long __u64;
|
|
|
|
#else
|
|
|
|
typedef __signed__ long long __s64;
|
|
|
|
typedef unsigned long long __u64;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* sysv */
|
|
|
|
typedef unsigned char unchar;
|
|
|
|
typedef unsigned short ushort;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
typedef unsigned long ulong;
|
|
|
|
|
|
|
|
typedef __s8 int8_t;
|
|
|
|
typedef __s16 int16_t;
|
|
|
|
typedef __s32 int32_t;
|
|
|
|
|
|
|
|
typedef __u8 uint8_t;
|
|
|
|
typedef __u16 uint16_t;
|
|
|
|
typedef __u32 uint32_t;
|
|
|
|
|
|
|
|
typedef __u64 uint64_t;
|
|
|
|
typedef __u64 u_int64_t;
|
|
|
|
typedef __s64 int64_t;
|
2018-06-26 16:41:06 +02:00
|
|
|
|
2018-06-30 01:00:25 +02:00
|
|
|
typedef enum { FALSE=0, TRUE } bool_t;
|
2018-06-26 16:41:06 +02:00
|
|
|
#define NULL ((void*)0)
|
2018-07-18 15:06:31 +02:00
|
|
|
|
|
|
|
#if __x86_64__
|
|
|
|
typedef unsigned long size_t;
|
|
|
|
typedef long ssize_t;
|
|
|
|
#else
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
typedef int ssize_t;
|
|
|
|
#endif
|