summaryrefslogtreecommitdiff
path: root/lib/common/ExcludeList.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-07-26 22:05:56 +0000
committerChris Wilson <chris+github@qwirx.com>2007-07-26 22:05:56 +0000
commit8bc9c724d51312906be6e965b45a7bc071cfb931 (patch)
tree0211f7c63d26f89ba02b13903e7eeeeba95ae2de /lib/common/ExcludeList.h
parent4a3627d5b883c0f66c9f2b770a427c18df51203f (diff)
Work around the fact that we may have regex support without having
regex.h (e.g. from pcreposix.h/libpcreposix) and disabuse HAVE_REGEX_H, define and use HAVE_REGEX_SUPPORT instead, thanks Gary! (refs #3, merges [1677] [1678] [1679])
Diffstat (limited to 'lib/common/ExcludeList.h')
-rw-r--r--lib/common/ExcludeList.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/ExcludeList.h b/lib/common/ExcludeList.h
index 522ee370..3c41bd11 100644
--- a/lib/common/ExcludeList.h
+++ b/lib/common/ExcludeList.h
@@ -50,7 +50,7 @@ public:
// Mainly for tests
unsigned int SizeOfDefiniteList() const {return mDefinite.size();}
unsigned int SizeOfRegexList() const
-#ifdef HAVE_REGEX_H
+#ifdef HAVE_REGEX_SUPPORT
{return mRegex.size();}
#else
{return 0;}
@@ -58,7 +58,7 @@ public:
private:
std::set<std::string> mDefinite;
-#ifdef HAVE_REGEX_H
+#ifdef HAVE_REGEX_SUPPORT
std::vector<regex_t *> mRegex;
std::vector<std::string> mRegexStr; // save original regular expression string-based source for Serialize
#endif