c_stddef.h 490 B

1234567891011121314151617181920212223
  1. #ifndef __c_stddef_h
  2. #define __c_stddef_h
  3. typedef signed int ptrdiff_t;
  4. #if !defined(offsetof)
  5. #define offsetof(s, m) (size_t)&(((s *)0)->m)
  6. #endif
  7. #if !defined(__size_t)
  8. #define __size_t 1
  9. typedef unsigned int size_t; /* others (e.g. <stdio.h>) also define */
  10. /* the unsigned integral type of the result of the sizeof operator. */
  11. #endif
  12. #undef NULL /* others (e.g. <stdio.h>) also define */
  13. #define NULL 0
  14. /* null pointer constant. */
  15. #endif
  16. /* end of c_stddef.h */