From: Eli Schwartz Date: Wed, 19 May 2021 11:08:30 +0000 (+0100) Subject: Fix a build problem if ENABLE_CHECKING is not defined. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c485e4759929a9f64d36b49600626bd912dcf335;p=binutils-gdb.git Fix a build problem if ENABLE_CHECKING is not defined. * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8373280aaaa..1795f4138ca 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2021-05-19 Eli Schwartz + + * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set. + 2021-05-19 Alan Modra PR 27884 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 6dd98789e28..cfc1436df64 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -41,6 +41,10 @@ #define CHAR_BIT 8 #endif +#ifndef ENABLE_CHECKING +#define ENABLE_CHECKING 0 +#endif + #undef MAX #undef MIN #define MAX(a, b) ((a) > (b) ? (a) : (b))