diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /unproto/stddef.h | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'unproto/stddef.h')
-rw-r--r-- | unproto/stddef.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/unproto/stddef.h b/unproto/stddef.h new file mode 100644 index 0000000..97dbc01 --- /dev/null +++ b/unproto/stddef.h @@ -0,0 +1,23 @@ +/* @(#) stddef.h 1.1 92/02/15 17:25:46 */ + +#ifndef _stddef_h_ +#define _stddef_h_ + +/* NULL is also defined in <stdio.h> */ + +#ifndef NULL +#define NULL 0 +#endif + +/* Structure member offset - some compilers barf on this. */ + +#define offsetof(type, member) ((size_t) &((type *)0)->member) + +/* Some of the following types may already be defined in <sys/types.h>. */ + +/* #include <sys/types.h> */ +/* typedef long ptrdiff_t; /* type of pointer difference */ +/* typedef unsigned short wchar_t; /* wide character type */ +/* typedef unsigned size_t; /* type of sizeof */ + +#endif /* _stddef_h_ */ |