From 855648de15a045b5a0b67385289c870eae0f4cc7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 7 Feb 2023 11:26:32 -0800 Subject: [PATCH] ircd: Add __has_feature / __has_cpp_attribute portable macros. --- include/ircd/portable.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ircd/portable.h b/include/ircd/portable.h index 1c5ea962b..c4a8495bc 100644 --- a/include/ircd/portable.h +++ b/include/ircd/portable.h @@ -27,6 +27,14 @@ #define __is_identifier(x) 0 #endif +#ifndef __has_feature + #define __has_feature(x) 0 +#endif + +#ifndef __has_cpp_attribute + #define __has_cpp_attribute(x) 0 +#endif + // // Common branch prediction macros //