|
|
1.1 root 1: /* ANSI common definitions */
2:
3: /* $Header$ */
4:
5: #ifndef NULL
6: #if __STDC__
7: #define NULL (void*)0
8: #else
9: #define NULL (char *)0
10: #endif
11: #endif
12:
13: #if ! _STDDEF_H
14: #define _STDDEF_H 1
15:
16: /* doesn't really belong here, but the library function need it */
17: #if __STDC__
18: #define ARGS(args) args
19: #define Void void
20: #define Const const
21: #else
22: #define ARGS(args) ()
23: #define Void char
24: #define Const
25: #endif
26:
27: #if 0
28: typedef unsigned int size_t; /* may need long */
29: #endif
30: typedef int ptrdiff_t;
31:
32: #define offsetof(type,id) ((size_t)&((type*)NULL)->id)
33:
34: extern int errno; /* really belongs in <errno.h> */
35:
36: #endif
37:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.