summaryrefslogtreecommitdiffstats
path: root/multiarch-dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'multiarch-dispatch.h')
-rw-r--r--multiarch-dispatch.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index f6c2cef..a76fe19 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -19,6 +19,10 @@
#undef arm
#define _multiarch_defined_arm
#endif
+#ifdef aarch64
+#undef aarch64
+#define _multiarch_defined_aarch64
+#endif
/* Undefine some interfering definitions (not built-ins) */
/* We can only redefine value 1, so we let it fail with other values */
@@ -62,6 +66,10 @@
#define _multiarch_defined_armeb
#undef armeb
#endif
+#if aarch64 == 1
+#define _multiarch_defined_aarch64
+#undef aarch64
+#endif
/* Dispatch arch dependent header */
#if defined(__linux__)
@@ -100,6 +108,8 @@
#else
#include _MULTIARCH_MAKE_HEADER(arm,_MULTIARCH_HEADER)
#endif
+#elif defined(__aarch64__)
+#include _MULTIARCH_MAKE_HEADER(aarch64,_MULTIARCH_HEADER)
#else
#error "Unknown architecture, please submit bug report"
#endif
@@ -170,3 +180,7 @@
#undef _multiarch_defined_armeb
#define armeb 1
#endif
+#ifdef _multiarch_defined_aarch64
+#undef _multiarch_defined_aarch64
+#define aarch64 1
+#endif