diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-08-15 00:34:05 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-08-15 00:34:05 -0400 |
| commit | 60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f (patch) | |
| tree | fdc0be85a1ca35e34c3ae2c805fe9b718e3c1091 /gcc-1.40/stddef.h | |
| parent | dd8dfab51b832a654365ed00c06bf802ff628bfa (diff) | |
| download | linux-0.01-distro-60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f.tar.gz linux-0.01-distro-60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f.tar.bz2 linux-0.01-distro-60cc83bf91bfc9bb02f6304b5d6c8234ba6d210f.zip | |
Diffstat (limited to 'gcc-1.40/stddef.h')
| -rw-r--r-- | gcc-1.40/stddef.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/gcc-1.40/stddef.h b/gcc-1.40/stddef.h new file mode 100644 index 0000000..a7f12f5 --- /dev/null +++ b/gcc-1.40/stddef.h @@ -0,0 +1,58 @@ +#ifndef _STDDEF_H +#define _STDDEF_H + +/* Signed type of difference of two pointers. */ + +#ifndef _PTRDIFF_T /* in case <sys/types.h> has defined it. */ +#ifndef _T_PTRDIFF +#ifndef __PTRDIFF_T +#ifndef _PTRDIFF_T_ +#ifndef ___int_ptrdiff_t_h +#define _PTRDIFF_T +#define _T_PTRDIFF +#define __PTRDIFF_T +#define _PTRDIFF_T_ +#define ___int_ptrdiff_t_h +typedef long ptrdiff_t; +#endif /* ___int_ptrdiff_t_h */ +#endif /* _PTRDIFF_T_ */ +#endif /* __PTRDIFF_T */ +#endif /* _T_PTRDIFF */ +#endif /* _PTRDIFF_T */ + +/* Unsigned type of `sizeof' something. */ + +#ifndef _SIZE_T /* in case <sys/types.h> has defined it. */ +#ifndef _T_SIZE +#ifndef __SIZE_T +#ifndef _SIZE_T_ +#ifndef ___int_size_t_h +#define _SIZE_T +#define _T_SIZE +#define __SIZE_T +#define _SIZE_T_ +#define ___int_size_t_h +typedef unsigned long size_t; +#endif /* ___int_size_t_h */ +#endif /* _SIZE_T_ */ +#endif /* __SIZE_T */ +#endif /* _T_SIZE */ +#endif /* _SIZE_T */ + +/* Data type for wide chars. */ + +#ifndef _WCHAR_T +#define _WCHAR_T +typedef int wchar_t; +#endif + +/* A null pointer constant. */ + +#undef NULL /* in case <stdio.h> has defined it. */ +#define NULL ((void *)0) + +/* Offset of member MEMBER in a struct of type TYPE. */ + +#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) + +#endif /* _STDDEF_H */ |
