diff options
| author | YamaArashi <shadow962@live.com> | 2016-04-30 05:17:08 -0700 |
|---|---|---|
| committer | YamaArashi <shadow962@live.com> | 2016-04-30 05:17:08 -0700 |
| commit | 5ff5f7e011e10810767a716e371828fb87661e90 (patch) | |
| tree | 512f9f575ff261c2ee2ca4241a19c043aa799257 /tools/agbcc/include/stddef.h | |
first commit
Diffstat (limited to 'tools/agbcc/include/stddef.h')
| -rw-r--r-- | tools/agbcc/include/stddef.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/agbcc/include/stddef.h b/tools/agbcc/include/stddef.h new file mode 100644 index 0000000..6c60d76 --- /dev/null +++ b/tools/agbcc/include/stddef.h @@ -0,0 +1,27 @@ +#ifndef _STDDEF_H +#define _STDDEF_H + +/* Signed type of difference of two pointers. */ + +typedef long int ptrdiff_t; + +/* Unsigned type of `sizeof' something. */ + +typedef unsigned long int size_t; + +/* Wide character type. + Locale-writers should change this as necessary to + be big enough to hold unique values not between 0 and 127, + and not (wchar_t) -1, for each defined multibyte character. */ + +typedef int wchar_t; + +/* A null pointer constant. */ + +#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 */ |
