wordsize.h 1.3 KB

123456789101112131415161718192021222324252627
  1. #error "This file must be written based on the data type sizes of the target"
  2. /* The following entries are a template for what defines should be in the
  3. wordsize.h header file for a target. */
  4. /* Size in bits of the 'long int' and pointer types. */
  5. #define __WORDSIZE
  6. /* This should be set to 1 if __WORDSIZE is 32 and size_t is type
  7. 'unsigned long' instead of type 'unsigned int'. This will ensure
  8. that SIZE_MAX is defined as an unsigned long constant instead of an
  9. unsigned int constant. Set to 0 if __WORDSIZE is 32 and size_t is
  10. 'unsigned int' and leave undefined if __WORDSIZE is 64. */
  11. #define __WORDSIZE32_SIZE_ULONG
  12. /* This should be set to 1 if __WORDSIZE is 32 and ptrdiff_t is type 'long'
  13. instead of type 'int'. This will ensure that PTRDIFF_MIN and PTRDIFF_MAX
  14. are defined as long constants instead of int constants. Set to 0 if
  15. __WORDSIZE is 32 and ptrdiff_t is type 'int' and leave undefined if
  16. __WORDSIZE is 64. */
  17. #define __WORDSIZE32_PTRDIFF_LONG
  18. /* Set to 1 in order to force time types to be 32 bits instead of 64 bits in
  19. struct lastlog and struct utmp{,x} on 64-bit ports. This may be done in
  20. order to make 64-bit ports compatible with 32-bit ports. Set to 0 for
  21. 64-bit ports where the time types are 64-bits or for any 32-bit ports. */
  22. #define __WORDSIZE_TIME64_COMPAT32