inttypes.h.in 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* This is an ISO C 9X header file. We omit this copy to the include
  2. directory if the local platform does not have inttypes.h, it contains
  3. [u]int[8,16,32]_t fixed width types */
  4. #include <config.h>
  5. /* Generate the fixed bit size types */
  6. #if SIZEOF_INT == 4
  7. typedef int int32_t;
  8. typedef unsigned int uint32_t;
  9. #else
  10. # if SIZEOF_LONG == 4
  11. typedef long int32_t;
  12. typedef unsigned long uint32_t;
  13. # else
  14. # if SIZEOF_SHORT == 4
  15. typedef short int32_t;
  16. typedef unsigned short uint32_t;
  17. # else
  18. # error Must have a form of 32-bit integer
  19. # endif
  20. # endif
  21. #endif
  22. #if SIZEOF_INT == 2
  23. typedef int int16_t;
  24. typedef unsigned int uint16_t;
  25. #else
  26. # if SIZEOF_LONG == 2
  27. typedef long int16_t;
  28. typedef unsigned long uint16_t;
  29. # else
  30. # if SIZEOF_SHORT == 2
  31. typedef short int16_t;
  32. typedef unsigned short uint16_t;
  33. # else
  34. # error Must have a form of 16-bit integer
  35. # endif
  36. # endif
  37. #endif
  38. typedef signed char int8_t;
  39. typedef unsigned char uint8_t;