Use __WORDSIZE instead of BFD_HOST_64BIT_LONG

to verify the conformity of architecture.

This resolves FTBFS with binutils >= 2.39 on amd64.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7671e68390)
r14.0.x r14.0.13
Slávek Banko 2 years ago
parent 5abe62409c
commit 421f852663
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -7,11 +7,12 @@
#include <stdint.h> #include <stdint.h>
#include <bfd.h> #include <bfd.h>
#if BFD_HOST_64BIT_LONG #if (__WORDSIZE == 64)
#if defined(__i386) #if defined(__i386)
#error "Using incorrect binutils header file for architecture." #error "Using incorrect binutils header file for architecture."
#endif #endif
#else #endif
#if (__WORDSIZE == 32)
#if defined(__amd64) #if defined(__amd64)
#error "Using incorrect binutils header file for architecture." #error "Using incorrect binutils header file for architecture."
#endif #endif

Loading…
Cancel
Save