]> Cypherpunks repositories - gostls13.git/commitdiff
include: Plan 9: hide any previous definition of Runemax
authorAkshat Kumar <seed@mail.nanosouffle.net>
Wed, 30 Jan 2013 15:56:08 +0000 (07:56 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 30 Jan 2013 15:56:08 +0000 (07:56 -0800)
Runemax is already defined in libc on 64-bit version of
Plan 9, but is not defined on other versions.
To accommodate, we make sure to rename any previous
instance of Runemax and re-define it subsequently.

R=rsc, ality, rminnich
CC=golang-dev
https://golang.org/cl/7232059

include/plan9/libc.h

index 0870a5b4af79dcca8c2907ace186a76a806ecda8..e6f9839c8ee8d22baaad3f017b8bc76191bf92c6 100644 (file)
@@ -2,7 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#define Runemax Plan9Runemax
 #include "/sys/include/libc.h"
+#undef Runemax
 #include "/sys/include/ctype.h"
 
 enum