]> Cypherpunks repositories - gostls13.git/commitdiff
6c: automatically #define _64BIT.
authorIan Lance Taylor <iant@golang.org>
Thu, 18 Nov 2010 18:26:41 +0000 (10:26 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Nov 2010 18:26:41 +0000 (10:26 -0800)
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

src/cmd/6c/txt.c

index 9a94ca201b0150a02bc6e880d6ad93d4bbf6e6b3..29b2e1312dd306e80567b5f520b5344dcf478bc5 100644 (file)
@@ -38,6 +38,7 @@ ginit(void)
 
        thechar = '6';
        thestring = "amd64";
+       dodefine("_64BIT");
        listinit();
        nstring = 0;
        mnstring = 0;