CheckTypeSize.c 361 B

1234567891011121314151617181920
  1. #ifdef CHECK_TYPE_SIZE_TYPE
  2. #ifdef HAVE_SYS_TYPES_H
  3. # include <sys/types.h>
  4. #endif /* HAVE_SYS_TYPES_H */
  5. #ifdef HAVE_STDINT_H
  6. # include <stdint.h>
  7. #endif /* HAVE_STDINT_H */
  8. int main()
  9. {
  10. return sizeof(CHECK_TYPE_SIZE_TYPE);
  11. }
  12. #else /* CHECK_TYPE_SIZE_TYPE */
  13. # error "CHECK_TYPE_SIZE_TYPE has to specify the type"
  14. #endif /* CHECK_TYPE_SIZE_TYPE */