stddef.h 415 B

123456789101112131415161718192021
  1. #ifndef _STDDEF_H
  2. #define _STDDEF_H
  3. #define NULL ((void *)0)
  4. typedef __SIZE_TYPE__ size_t;
  5. typedef __WCHAR_TYPE__ wchar_t;
  6. typedef __PTRDIFF_TYPE__ ptrdiff_t;
  7. #define offsetof(type, field) ((size_t) &((type *)0)->field)
  8. #ifndef __int8_t_defined
  9. #define __int8_t_defined
  10. typedef char int8_t;
  11. typedef short int int16_t;
  12. typedef int int32_t;
  13. typedef long long int int64_t;
  14. #endif
  15. void *alloca(size_t size);
  16. #endif