stddef.h 477 B

123456789101112131415161718192021
  1. /*
  2. * stddef.h - common definitions
  3. *
  4. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  5. * See the copyright notice in the ACK home directory, in the file "Copyright".
  6. */
  7. /* $Id$ */
  8. #ifndef _STDDEF_H
  9. #define _STDDEF_H
  10. #include <stdint.h>
  11. #define NULL 0
  12. #define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident)
  13. typedef char wchar_t; /* type of a wide character */
  14. typedef long off_t; /* type of a position offset */
  15. #endif