2012-06-01 18:16:38 -04:00
|
|
|
#ifndef __STDINT_H
|
|
|
|
#define __STDINT_H
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-06-01 18:16:38 -04:00
|
|
|
typedef unsigned int uintptr_t;
|
|
|
|
|
2013-01-10 11:10:29 -05:00
|
|
|
typedef unsigned long long uint64_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
|
|
|
|
typedef long long int64_t;
|
|
|
|
typedef int int32_t;
|
|
|
|
typedef short int16_t;
|
|
|
|
typedef char int8_t;
|
|
|
|
|
|
|
|
#define __int_c_join(a, b) a ## b
|
|
|
|
#define __int_c(v, suffix) __int_c_join(v, suffix)
|
|
|
|
#define __uint_c(v, suffix) __int_c_join(v##U, suffix)
|
2012-06-01 18:16:38 -04:00
|
|
|
|
2013-01-10 11:10:29 -05:00
|
|
|
#define INT64_C(v) __int_c(v, LL)
|
|
|
|
#define UINT64_C(v) __uint_c(v, LL)
|
2013-01-10 11:58:17 -05:00
|
|
|
#define INT32_C(v) v
|
|
|
|
#define UINT32_C(v) v##U
|
2013-01-10 11:10:29 -05:00
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-01-10 11:10:29 -05:00
|
|
|
#endif /* __STDINT_H */
|