diff --git a/include/zinnia/compiler.h b/include/zinnia/compiler.h index b253792..f325788 100644 --- a/include/zinnia/compiler.h +++ b/include/zinnia/compiler.h @@ -14,18 +14,10 @@ #define __format(like, ...) gnu::format(like, __VA_ARGS__) #define __always_inline gnu::always_inline #define __visibility gnu::visibility - -// TODO: Workaround for clang which doesn't have these C23 standard attributes yet. -#if !__has_c_attribute(unsequenced) -#define unsequenced gnu::const -#endif - -#if !__has_c_attribute(reproducible) -#define reproducible gnu::pure -#endif +#define __pure gnu::pure // Only clang has these hints, GCC would throw a warning here. -// clang::noderef also don't support the C23 attribute format. +// clang::noderef also doesn't support the C23 attribute format. #ifdef __clang__ #define __user __attribute__((noderef, address_space(1))) #define __phys __attribute__((noderef, address_space(2)))