diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-23 14:29:34 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-23 14:31:42 -0400 |
commit | e38a17f0a4e6cd7eaf9418fdb8669ae6c42d55ea (patch) | |
tree | 71a56d9673628cc1798f1597e915565cebc79ae8 /src/prelude.h | |
parent | 7e436bddf7d2999ca04cc9f78383f17261ed1659 (diff) | |
download | bfs-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.h | 4 |
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 /** |