You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stdint.h 818B

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