| changeset 304: | 173cc6152248 |
| parent: | 9939057d30e8 |
| author: | bellard |
| date: | Sat Oct 02 14:11:28 2004 +0000 (7 years ago) |
| permissions: | -rw-r--r-- |
| description: | [project @ 2004-10-02 14:11:28 by bellard] fixes for dietlibc |
1#ifndef _STDDEF_H2#define _STDDEF_H4#define NULL ((void *)0)5typedef __SIZE_TYPE__ size_t;6typedef __WCHAR_TYPE__ wchar_t;7typedef __PTRDIFF_TYPE__ ptrdiff_t;8#define offsetof(type, field) ((size_t) &((type *)0)->field)10/* need to do that because of glibc 2.1 bug (should have a way to test11 presence of 'long long' without __GNUC__, or TCC should define12 __GNUC__ ? */13#if !defined(__int8_t_defined) && !defined(__dietlibc__)14#define __int8_t_defined15typedef char int8_t;16typedef short int int16_t;17typedef int int32_t;18typedef long long int int64_t;19#endif21#endif