From 2c4d653df0ae16bb221eb2a08314a051301236b5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 1 Nov 2018 21:58:31 -0400 Subject: util: Wrap __has_include() --- util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util.h') 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 -- cgit v1.2.3