diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | multiarch-dispatch.h | 14 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- add support for aarch64 + Version 1.0.13 - 09 January 2011, by Olivier Blin - fix other multiarch() macros by adding nil 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 |