stdint.h 598 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __GBLIBC_STDINT_H_
  2. #define __GBLIBC_STDINT_H_
  3. #undef NULL
  4. #ifdef __cplusplus
  5. #define NULL (nullptr)
  6. #else
  7. #define NULL ((void*)0)
  8. #endif
  9. typedef __INT8_TYPE__ int8_t;
  10. typedef __INT16_TYPE__ int16_t;
  11. typedef __INT32_TYPE__ int32_t;
  12. typedef __INT64_TYPE__ int64_t;
  13. typedef __UINT8_TYPE__ uint8_t;
  14. typedef __UINT16_TYPE__ uint16_t;
  15. typedef __UINT32_TYPE__ uint32_t;
  16. typedef __UINT64_TYPE__ uint64_t;
  17. typedef __UINTPTR_TYPE__ uintptr_t;
  18. typedef __INTPTR_TYPE__ intptr_t;
  19. typedef __SIZE_TYPE__ size_t;
  20. typedef int32_t ssize_t;
  21. typedef uint64_t time_t;
  22. typedef int64_t time_diff_t;
  23. #endif