2010-02-20 11:07:55 +08:00
|
|
|
/*
|
2010-02-21 05:57:20 +08:00
|
|
|
* Replacement stdint.h because GCC doesn't come with it yet (C99)
|
2010-02-20 11:07:55 +08:00
|
|
|
*/
|
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
#ifndef __STDINT_H
|
|
|
|
#define __STDINT_H
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef short int int16_t;
|
|
|
|
typedef int int32_t;
|
|
|
|
typedef long long int int64_t;
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef unsigned short int uint16_t;
|
|
|
|
typedef unsigned int uint32_t;
|
2010-02-20 11:07:55 +08:00
|
|
|
typedef unsigned long long int uint64_t;
|
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
typedef int int_fast16_t;
|
|
|
|
typedef int int_fast32_t;
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
typedef unsigned int uint_fast16_t;
|
|
|
|
typedef unsigned int uint_fast32_t;
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
typedef int intptr_t;
|
|
|
|
typedef unsigned int uintptr_t;
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
#define __INT64_C(c) c ## LL
|
|
|
|
#define __UINT64_C(c) c ## ULL
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
#define __PRI64_RANK "ll"
|
|
|
|
#define __PRIFAST_RANK ""
|
|
|
|
#define __PRIPTR_RANK ""
|
2010-02-20 11:07:55 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
#endif /* __STDINT_H */
|