diff options
| author | bellard <bellard> | 2002-01-05 19:56:04 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2002-01-05 19:56:04 +0000 |
| commit | 1f15c98ab93655995c0330cd8d609d1c236be5d5 (patch) | |
| tree | c758e2d6da89d141ac8c50aac587f389d9169bf1 /stddef.h | |
| parent | 8d191071491a24630cbf10ca05adcdfc683a27a7 (diff) | |
| download | tinycc-1f15c98ab93655995c0330cd8d609d1c236be5d5.tar.gz tinycc-1f15c98ab93655995c0330cd8d609d1c236be5d5.tar.bz2 | |
fixed glibc bug
Diffstat (limited to 'stddef.h')
| -rw-r--r-- | stddef.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -7,4 +7,15 @@ typedef int wchar_t; typedef int ptrdiff_t; #define offsetof(type, field) ((size_t) &((type *)0)->field) +/* need to do that because of glibc 2.1 bug (should have a way to test + presence of 'long long' without __GNUC__, or TCC should define + __GNUC__ ? */ +#ifndef __int8_t_defined +#define __int8_t_defined +typedef char int8_t; +typedef short int int16_t; +typedef int int32_t; +typedef long long int int64_t; +#endif + #endif |
