diff options
Diffstat (limited to 'libunwind/include/__libunwind_config.h')
| -rw-r--r-- | libunwind/include/__libunwind_config.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libunwind/include/__libunwind_config.h b/libunwind/include/__libunwind_config.h index 343934e..980d11e 100644 --- a/libunwind/include/__libunwind_config.h +++ b/libunwind/include/__libunwind_config.h @@ -212,11 +212,13 @@ # define _LIBUNWIND_HIGHEST_DWARF_REGISTER 287 #endif // _LIBUNWIND_IS_NATIVE_ONLY -#if __has_feature(ptrauth_calls) && __has_feature(ptrauth_returns) -# define _LIBUNWIND_TARGET_AARCH64_AUTHENTICATED_UNWINDING 1 -#elif __has_feature(ptrauth_calls) != __has_feature(ptrauth_returns) -# error "Either both or none of ptrauth_calls and ptrauth_returns "\ - "is allowed to be enabled" +#if defined(__has_feature) +# if __has_feature(ptrauth_calls) && __has_feature(ptrauth_returns) +# define _LIBUNWIND_TARGET_AARCH64_AUTHENTICATED_UNWINDING 1 +# elif __has_feature(ptrauth_calls) != __has_feature(ptrauth_returns) +# error "Either both or none of ptrauth_calls and ptrauth_returns "\ + "is allowed to be enabled" +# endif #endif #endif // ____LIBUNWIND_CONFIG_H__ |
