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>
pull/9/head r14.1.1
Slávek Banko 2 years ago
parent 6706910e4f
commit 7671e68390
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

Loading…
Cancel
Save