summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.h b/util.h
index 18fc318..920d6e9 100644
--- a/util.h
+++ b/util.h
@@ -28,6 +28,12 @@
// Some portability concerns
+#ifdef __has_include
+# define BFS_HAS_INCLUDE(header) __has_include(header)
+#else
+# define BFS_HAS_INCLUDE(header) false
+#endif
+
#if !defined(FNM_CASEFOLD) && defined(FNM_IGNORECASE)
# define FNM_CASEFOLD FNM_IGNORECASE
#endif