stdint-darwin.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* DO NOT EDIT THIS FILE.
  2. It has been auto-edited by fixincludes from:
  3. "fixinc/tests/inc/stdint-darwin.h"
  4. This had to be done to correct non-standard usages in the
  5. original, manufacturer supplied header file. */
  6. #if defined( DARWIN_STDINT_1_CHECK )
  7. #define UINT8_C(v) v
  8. #define UINT16_C(v) v
  9. #endif /* DARWIN_STDINT_1_CHECK */
  10. #if defined( DARWIN_STDINT_2_CHECK )
  11. #if __WORDSIZE == 64
  12. #define INTPTR_MAX 9223372036854775807L
  13. #define INTPTR_MIN (-INTPTR_MAX-1)
  14. #else
  15. #define INTPTR_MAX 2147483647L
  16. #define INTPTR_MIN (-INTPTR_MAX-1)
  17. #endif
  18. #endif /* DARWIN_STDINT_2_CHECK */
  19. #if defined( DARWIN_STDINT_3_CHECK )
  20. #if __WORDSIZE == 64
  21. #define UINTPTR_MAX 18446744073709551615UL
  22. #else
  23. #define UINTPTR_MAX 4294967295UL
  24. #endif
  25. #endif /* DARWIN_STDINT_3_CHECK */
  26. #if defined( DARWIN_STDINT_4_CHECK )
  27. #if __WORDSIZE == 64
  28. #define SIZE_MAX 18446744073709551615UL
  29. #else
  30. #define SIZE_MAX 4294967295UL
  31. #endif
  32. #endif /* DARWIN_STDINT_4_CHECK */
  33. #if defined( DARWIN_STDINT_5_CHECK )
  34. #if __WORDSIZE == 64
  35. #define INTMAX_MIN (-9223372036854775807L - 1)
  36. #define INTMAX_MAX 9223372036854775807L
  37. #define UINTMAX_MAX 18446744073709551615UL
  38. #else
  39. #define INTMAX_MIN (-9223372036854775807LL - 1)
  40. #define INTMAX_MAX 9223372036854775807LL
  41. #define UINTMAX_MAX 18446744073709551615ULL
  42. #endif
  43. #endif /* DARWIN_STDINT_5_CHECK */
  44. #if defined( DARWIN_STDINT_6_CHECK )
  45. #if __WORDSIZE == 64
  46. #define PTRDIFF_MIN (-9223372036854775807L - 1)
  47. #define PTRDIFF_MAX 9223372036854775807L
  48. #else
  49. #define PTRDIFF_MIN (-2147483647 - 1)
  50. #define PTRDIFF_MAX 2147483647
  51. #endif
  52. #endif /* DARWIN_STDINT_6_CHECK */
  53. #if defined( DARWIN_STDINT_7_CHECK )
  54. #if __WORDSIZE == 64
  55. #define INTMAX_C(v) (v ## L)
  56. #define UINTMAX_C(v) (v ## UL)
  57. #else
  58. #define INTMAX_C(v) (v ## LL)
  59. #define UINTMAX_C(v) (v ## ULL)
  60. #endif
  61. #endif /* DARWIN_STDINT_7_CHECK */