From 3215e3d78ed12d969bd1cddcf1a7606361b1db71 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 30 Dec 2015 22:40:12 -0400 Subject: [PATCH] RX: test for presence of REG_ENHANCED Instead of checking for Darwin, check whether REG_ENHANCED is defined, since that's the only difference between the two options. This fixes compiling on older versions of OS X, where REG_ENHANCED is not defined. --- src/RX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RX.cpp b/src/RX.cpp index e9dce00b2..4e0b1f811 100644 --- a/src/RX.cpp +++ b/src/RX.cpp @@ -85,7 +85,7 @@ void RX::compile () int result; if ((result = regcomp (&_regex, _pattern.c_str (), -#ifdef DARWIN +#if defined REG_ENHANCED REG_ENHANCED | REG_EXTENDED | REG_NEWLINE | #else REG_EXTENDED | REG_NEWLINE |