選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

stdint.h 777B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _STDINT_H
  2. #define _STDINT_H
  3. /*
  4. * This is a standard predefined macro on all gcc's I've seen. It's
  5. * important that we define size_t in the same way as the compiler,
  6. * because that's what it's expecting when it checks %zd/%zx printf
  7. * format specifiers.
  8. */
  9. #ifndef __SIZE_TYPE__
  10. #define __SIZE_TYPE__ unsigned long /* safe choice on most systems */
  11. #endif
  12. #include <bits/stdint.h>
  13. typedef int8_t s8;
  14. typedef uint8_t u8;
  15. typedef int16_t s16;
  16. typedef uint16_t u16;
  17. typedef int32_t s32;
  18. typedef uint32_t u32;
  19. typedef int64_t s64;
  20. typedef uint64_t u64;
  21. typedef int8_t int8;
  22. typedef uint8_t uint8;
  23. typedef int16_t int16;
  24. typedef uint16_t uint16;
  25. typedef int32_t int32;
  26. typedef uint32_t uint32;
  27. typedef int64_t int64;
  28. typedef uint64_t uint64;
  29. #endif /* _STDINT_H */