summaryrefslogtreecommitdiffstats
path: root/src/bfstd.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-27 16:23:47 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commit4890e2754c238c51497a19b67fb2458ef108f558 (patch)
tree1e590b06485b206a7c96c044fbb393b4df73498e /src/bfstd.c
parent49e8620fe191da4fabc79896d05d56cb531ed673 (diff)
downloadbfs-4890e2754c238c51497a19b67fb2458ef108f558.tar.xz
prelude: Rely more on __has_include()
Rather than a bunch of manual fallback macros, just provide a fallback definition that returns false.
Diffstat (limited to 'src/bfstd.c')
-rw-r--r--src/bfstd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bfstd.c b/src/bfstd.c
index 9a3562d..a76725d 100644
--- a/src/bfstd.c
+++ b/src/bfstd.c
@@ -27,13 +27,13 @@
#include <unistd.h>
#include <wchar.h>
-#if BFS_USE_SYS_SYSMACROS_H
+#if __has_include(<sys/sysmacros.h>)
# include <sys/sysmacros.h>
-#elif BFS_USE_SYS_MKDEV_H
+#elif __has_include(<sys/mkdev.h>)
# include <sys/mkdev.h>
#endif
-#if BFS_USE_UTIL_H
+#if __has_include(<util.h>)
# include <util.h>
#endif