summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libr-bfd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libr-bfd.h b/src/libr-bfd.h
index 7b6ea3e..9fae8f5 100644
--- a/src/libr-bfd.h
+++ b/src/libr-bfd.h
@@ -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