aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-01-29 17:07:57 +0000
committerDaniel Jacobowitz <drow@false.org>2002-01-29 17:07:57 +0000
commit246fcdee135040fbfbe8dd38bc09fa3b6832b1ed (patch)
tree43cabbd5d961cb03419a5568afbe375465e2906a
parenta0e9c55fc17424a8f6ef6fca7d90aa47d6341c47 (diff)
downloadgdb-246fcdee135040fbfbe8dd38bc09fa3b6832b1ed.zip
gdb-246fcdee135040fbfbe8dd38bc09fa3b6832b1ed.tar.gz
gdb-246fcdee135040fbfbe8dd38bc09fa3b6832b1ed.tar.bz2
2002-01-29 Daniel Jacobowitz <drow@mvista.com>
* config/tc-i386.c: Protect definitions of true and false from redefinition.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9d98f75..5ee5bbf 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-29 Daniel Jacobowitz <drow@mvista.com>
+
+ * config/tc-i386.c: Protect definitions of true and false
+ from redefinition.
+
2002-01-28 Jakub Jelinek <jakub@redhat.com>
* config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index c81f870..650621f 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -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));