RC: Conditional compilation regarding REG_ENHANCED.
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user