summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authordata-man <dataman@tutanota.com>2022-01-24 07:34:59 +0500
committerdata-man <dataman@tutanota.com>2022-01-24 07:34:59 +0500
commit475bc25800451c76d9a721fb35628693758a15e0 (patch)
treeaa46e0fc0be368d98f1fc34853b70b1e6619eedb /util.h
parent8199f5c1c599a39ba0a9c4ace0bacde95b4bb483 (diff)
downloadbfs-475bc25800451c76d9a721fb35628693758a15e0.tar.xz
Using Oniguruma library (optionally)
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.h b/util.h
index 37c03fa..213d514 100644
--- a/util.h
+++ b/util.h
@@ -23,12 +23,17 @@
#include <fcntl.h>
#include <fnmatch.h>
-#include <regex.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
+#ifdef USE_ONIGURUMA
+ #include <onigposix.h>
+#else
+ #include <regex.h>
+#endif
+
// Some portability concerns
#ifdef __has_feature