RC: Conditional compilation regarding REG_ENHANCED.

This commit is contained in:
Paul Beckingham 2015-07-25 01:04:11 -04:00
parent 6c31098ad2
commit 6510026189

View file

@ -56,7 +56,11 @@ void RX::compile ()
int result; int result;
if ((result = regcomp (&_regex, _pattern.c_str (), if ((result = regcomp (&_regex, _pattern.c_str (),
#ifdef DARWIN
REG_ENHANCED | REG_EXTENDED | REG_NEWLINE | REG_ENHANCED | REG_EXTENDED | REG_NEWLINE |
#else
REG_EXTENDED | REG_NEWLINE |
#endif
(_case_sensitive ? 0 : REG_ICASE))) != 0) (_case_sensitive ? 0 : REG_ICASE))) != 0)
{ {
char message[256]; char message[256];