CheckSizeOf.c 326 B

1234567891011121314151617181920
  1. #ifdef CHECK_SIZE_OF
  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_SIZE_OF);
  11. }
  12. #else /* CHECK_SIZE_OF */
  13. # error "CHECK_SIZE_OF has to specify the type"
  14. #endif /* CHECK_SIZE_OF */