diff options
| author | Matthias Gatto <uso.cosmo.ray@gmail.com> | 2017-07-25 18:56:06 +0200 |
|---|---|---|
| committer | Matthias Gatto <uso.cosmo.ray@gmail.com> | 2017-07-25 18:56:41 +0200 |
| commit | 52622c3c0365ad497ce1188e433ac5f0a721c283 (patch) | |
| tree | 9bc3b268700e41f270d97ae4687ead671e950941 /include/stddef.h | |
| parent | 23064b17343b7222feae120c037cf43d196068da (diff) | |
| download | tinycc-52622c3c0365ad497ce1188e433ac5f0a721c283.tar.gz tinycc-52622c3c0365ad497ce1188e433ac5f0a721c283.tar.bz2 | |
use int for ssize_t, (u)intptr_t instead of long in stddef.h
Diffstat (limited to 'include/stddef.h')
| -rw-r--r-- | include/stddef.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/stddef.h b/include/stddef.h index 694d503..8ed6b3e 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -2,11 +2,18 @@ #define _STDDEF_H typedef __SIZE_TYPE__ size_t; -typedef __PTRDIFF_TYPE__ ssize_t; typedef __WCHAR_TYPE__ wchar_t; typedef __PTRDIFF_TYPE__ ptrdiff_t; + +#ifdef __ILP32__ +typedef int ssize_t; +typedef int intptr_t; +typedef unsigned int uintptr_t; +#else +typedef __PTRDIFF_TYPE__ ssize_t; typedef __PTRDIFF_TYPE__ intptr_t; typedef __SIZE_TYPE__ uintptr_t; +#endif #ifndef __int8_t_defined #define __int8_t_defined |
