aboutsummaryrefslogtreecommitdiff
path: root/stddef.h
diff options
context:
space:
mode:
authorbellard <bellard>2002-01-05 19:56:04 +0000
committerbellard <bellard>2002-01-05 19:56:04 +0000
commit1f15c98ab93655995c0330cd8d609d1c236be5d5 (patch)
treec758e2d6da89d141ac8c50aac587f389d9169bf1 /stddef.h
parent8d191071491a24630cbf10ca05adcdfc683a27a7 (diff)
downloadtinycc-1f15c98ab93655995c0330cd8d609d1c236be5d5.tar.gz
tinycc-1f15c98ab93655995c0330cd8d609d1c236be5d5.tar.bz2
fixed glibc bug
Diffstat (limited to 'stddef.h')
-rw-r--r--stddef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/stddef.h b/stddef.h
index f83db26..1a5408d 100644
--- a/stddef.h
+++ b/stddef.h
@@ -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