summaryrefslogtreecommitdiffstats
path: root/src/prelude.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-23 14:29:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-23 14:31:42 -0400
commite38a17f0a4e6cd7eaf9418fdb8669ae6c42d55ea (patch)
tree71a56d9673628cc1798f1597e915565cebc79ae8 /src/prelude.h
parent7e436bddf7d2999ca04cc9f78383f17261ed1659 (diff)
downloadbfs-e38a17f0a4e6cd7eaf9418fdb8669ae6c42d55ea.tar.xz
prelude: Stub out __has_builtin() if necessary
Fixes: c964524 ("atomic: Add a spin_loop() hint")
Diffstat (limited to 'src/prelude.h')
-rw-r--r--src/prelude.h4
1 files changed, 4 insertions, 0 deletions
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
/**