From e38a17f0a4e6cd7eaf9418fdb8669ae6c42d55ea Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 23 Aug 2024 14:29:34 -0400 Subject: prelude: Stub out __has_builtin() if necessary Fixes: c964524 ("atomic: Add a spin_loop() hint") --- src/prelude.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/prelude.h') diff --git a/src/prelude.h b/src/prelude.h index abf3564..9aaec04 100644 --- a/src/prelude.h +++ b/src/prelude.h @@ -138,6 +138,10 @@ extern const char bfs_ldlibs[]; # define __has_attribute(attr) false #endif +#ifndef __has_builtin +# define __has_builtin(builtin) false +#endif + // Fundamental utilities /** -- cgit v1.2.3