summaryrefslogtreecommitdiff
path: root/include/u.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-08-03 17:25:15 -0700
committerRuss Cox <rsc@golang.org>2008-08-03 17:25:15 -0700
commit8b06420233d33b1cddc5709ecf34a106fb709882 (patch)
tree77abd882c6047963b22d61229dd95e9356208875 /include/u.h
parentb389a6f476e3a8c0432d749be945958bb2d8a0df (diff)
downloadgolang-8b06420233d33b1cddc5709ecf34a106fb709882.tar.gz
make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
Diffstat (limited to 'include/u.h')
-rw-r--r--include/u.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h
index 9b7bccb1a..1b196286e 100644
--- a/include/u.h
+++ b/include/u.h
@@ -173,6 +173,16 @@ typedef intptr_t intptr;
typedef uint32_t u32int;
typedef int32_t s32int;
+typedef s8int int8;
+typedef u8int uint8;
+typedef s16int int16;
+typedef u16int uint16;
+typedef s32int int32;
+typedef u32int uint32;
+typedef s64int int64;
+typedef u64int uint64;
+
+
#undef _NEEDUCHAR
#undef _NEEDUSHORT
#undef _NEEDUINT