From 65c5fbd4fdecd96c91f43edc673e1e14f37c5cbd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 31 Mar 2021 22:59:25 +1030 Subject: [PATCH] PR27671, Poisoning TRUE / FALSE poisons Win32 system headers PR 27671 * bfd-in.h: Don't poison FALSE or TRUE. * bfd-in2.h: Regenerate. --- bfd/ChangeLog | 6 ++++++ bfd/bfd-in.h | 2 +- bfd/bfd-in2.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9a9152609da..e12c559c137 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2021-03-31 Alan Modra + + PR 27671 + * bfd-in.h: Don't poison FALSE or TRUE. + * bfd-in2.h: Regenerate. + 2021-03-31 Alan Modra * sysdep.h: POISON_BFD_BOOLEAN: Define. diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 6f72cc4539b..1fbccca4161 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -120,7 +120,7 @@ typedef struct bfd bfd; success and FALSE on failure (unless they're a predicate). */ #ifdef POISON_BFD_BOOLEAN -# pragma GCC poison bfd_boolean FALSE TRUE +# pragma GCC poison bfd_boolean #else # define bfd_boolean bool # undef FALSE diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 40d35a1a439..2b431dacece 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -127,7 +127,7 @@ typedef struct bfd bfd; success and FALSE on failure (unless they're a predicate). */ #ifdef POISON_BFD_BOOLEAN -# pragma GCC poison bfd_boolean FALSE TRUE +# pragma GCC poison bfd_boolean #else # define bfd_boolean bool # undef FALSE -- 2.30.2