]> git.sur5r.net Git - i3/i3/blobdiff - src/regex.c
Unconditionally depend on libpcre >= 8.10 (#2472)
[i3/i3] / src / regex.c
index 24846981fbf16b945c5d7e90a9e4b62c26f2f66e..12c0b67f01175a6ac616e03ffd6c50714dfc8726 100644 (file)
@@ -28,11 +28,9 @@ struct regex *regex_new(const char *pattern) {
     struct regex *re = scalloc(1, sizeof(struct regex));
     re->pattern = sstrdup(pattern);
     int options = PCRE_UTF8;
-#ifdef PCRE_HAS_UCP
     /* We use PCRE_UCP so that \B, \b, \D, \d, \S, \s, \W, \w and some POSIX
      * character classes play nicely with Unicode */
     options |= PCRE_UCP;
-#endif
     while (!(re->regex = pcre_compile2(pattern, options, &errorcode, &error, &offset, NULL))) {
         /* If the error is that PCRE was not compiled with UTF-8 support we
          * disable it and try again */