aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-11-18 10:26:41 -0800
committerIan Lance Taylor <iant@golang.org>2010-11-18 10:26:41 -0800
commitd853b594b431ad86cfea78e06847a8319280982b (patch)
treead33b8b872460fbd3f0c1d4fbe43563bd1510414
parent285298b975fd0d7490ea7cb7c7b7bf3e687988c6 (diff)
downloadgo-d853b594b431ad86cfea78e06847a8319280982b.tar.gz
go-d853b594b431ad86cfea78e06847a8319280982b.zip
6c: automatically #define _64BIT.
This makes it much easier to use a tool like Swig which needs to run either 8c or 6c on generated code which #include's "runtime.h". R=ken2, rsc CC=golang-dev https://golang.org/cl/3205041
-rw-r--r--src/cmd/6c/txt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/6c/txt.c b/src/cmd/6c/txt.c
index 9a94ca201b..29b2e1312d 100644
--- a/src/cmd/6c/txt.c
+++ b/src/cmd/6c/txt.c
@@ -38,6 +38,7 @@ ginit(void)
thechar = '6';
thestring = "amd64";
+ dodefine("_64BIT");
listinit();
nstring = 0;
mnstring = 0;