summaryrefslogtreecommitdiffstats
path: root/src/sord_config.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-07 12:07:51 -0400
committerDavid Robillard <d@drobilla.net>2022-10-07 12:45:40 -0400
commit67bcd63bda9d7b095489a09b9880aa730ddb5488 (patch)
treefc91ee0cb0cbda396faa742f64b52abc831e1f84 /src/sord_config.h
parentd877d78c98d90fbf57136bb73919524e618fd859 (diff)
downloadsord-67bcd63bda9d7b095489a09b9880aa730ddb5488.tar.gz
sord-67bcd63bda9d7b095489a09b9880aa730ddb5488.tar.bz2
sord-67bcd63bda9d7b095489a09b9880aa730ddb5488.zip
Port sord_validate to pcre2
Diffstat (limited to 'src/sord_config.h')
-rw-r--r--src/sord_config.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sord_config.h b/src/sord_config.h
index 7853b4a..5b7a341 100644
--- a/src/sord_config.h
+++ b/src/sord_config.h
@@ -20,11 +20,11 @@
#if !defined(SORD_NO_DEFAULT_CONFIG)
-// The validator uses PCRE for literal pattern matching
-# ifndef HAVE_PCRE
+// The validator uses PCRE2 for literal pattern matching
+# ifndef HAVE_PCRE2
# ifdef __has_include
-# if __has_include(<pcre.h>)
-# define HAVE_PCRE 1
+# if __has_include(<pcre2.h>)
+# define HAVE_PCRE2 1
# endif
# endif
# endif
@@ -39,10 +39,10 @@
if the build system defines them all.
*/
-#ifdef HAVE_PCRE
-# define USE_PCRE 1
+#ifdef HAVE_PCRE2
+# define USE_PCRE2 1
#else
-# define USE_PCRE 0
+# define USE_PCRE2 0
#endif
#endif // SORD_CONFIG_H