This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] protect true/false in gas/tc-i386.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 29 Jan 2002 12:09:03 -0500
- Subject: [PATCH] protect true/false in gas/tc-i386.c
Fallout from the <stdbool.h> patch I posted, but right in any case, so I've
committed this.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
2002-01-29 Daniel Jacobowitz <drow@mvista.com>
* config/tc-i386.c: Protect definitions of true and false
from redefinition.
Index: tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.107
diff -u -r1.107 tc-i386.c
--- tc-i386.c 2001/11/15 21:28:55 1.107
+++ tc-i386.c 2002/01/29 17:06:20
@@ -48,8 +48,12 @@
#define SCALE1_WHEN_NO_INDEX 1
#endif
+#ifndef true
#define true 1
+#endif
+#ifndef false
#define false 0
+#endif
static unsigned int mode_from_disp_size PARAMS ((unsigned int));
static int fits_in_signed_byte PARAMS ((offsetT));