home *** CD-ROM | disk | FTP | other *** search
- /*
- * stddef.h -- ANSI
- *
- * Various useful macros and types.
- *
- * Copyright (c) 1990, MetaWare Incorporated
- */
-
- #ifndef _STDDEF_H
- #define _STDDEF_H
-
- #define NULL ((void *)0)
- #ifndef _SIZE_T_DEFINED
- #define _SIZE_T_DEFINED
- typedef unsigned int size_t;
- #endif
- #ifndef _WCHAR_T_DEFINED
- #define _WCHAR_T_DEFINED
- typedef char wchar_t;
- #endif
- #ifndef _PTRDIFF_T_DEFINED
- #define _PTRDIFF_T_DEFINED
- typedef int ptrdiff_t;
- #endif
- extern int errno; /* See Status.cf for the possible values. */
- /* #define offsetof(Type,Field) _offsetof(Type,Field) */
- /* #define offsetof(Type,Field) (int)(&((Type *)0)->Field) */
- /* This version of the macro prevents problems in type-size conversion from
- * a pointer to an int.
- */
- #define offsetof(Type,Field) (int)((char *)&((Type *)0)->Field-(char *)0)
-
- #endif /* _STDDEF_H */
-