40 lines · c
1#ifndef STDINT_H2#define STDINT_H3 4#ifdef __INT8_TYPE__5typedef __INT8_TYPE__ int8_t;6#endif7typedef unsigned char uint8_t;8 9#ifdef __INT16_TYPE__10typedef __INT16_TYPE__ int16_t;11typedef unsigned __INT16_TYPE__ uint16_t;12#endif13 14#ifdef __INT32_TYPE__15typedef __INT32_TYPE__ int32_t;16typedef unsigned __INT32_TYPE__ uint32_t;17#endif18 19#ifdef __INT64_TYPE__20typedef __INT64_TYPE__ int64_t;21typedef unsigned __INT64_TYPE__ uint64_t;22#endif23 24#ifdef __INTPTR_TYPE__25typedef __INTPTR_TYPE__ intptr_t;26typedef unsigned __INTPTR_TYPE__ uintptr_t;27#else28#error Every target should have __INTPTR_TYPE__29#endif30 31#ifdef __INTPTR_MAX__32#define INTPTR_MAX __INTPTR_MAX__33#endif34 35#ifdef __UINTPTR_MAX__36#define UINTPTR_MAX __UINTPTR_MAX__37#endif38 39#endif /* STDINT_H */40