mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
RC: Conditional compilation regarding REG_ENHANCED.
This commit is contained in:
parent
6c31098ad2
commit
6510026189
1 changed files with 4 additions and 0 deletions
|
@ -56,7 +56,11 @@ void RX::compile ()
|
|||
|
||||
int result;
|
||||
if ((result = regcomp (&_regex, _pattern.c_str (),
|
||||
#ifdef DARWIN
|
||||
REG_ENHANCED | REG_EXTENDED | REG_NEWLINE |
|
||||
#else
|
||||
REG_EXTENDED | REG_NEWLINE |
|
||||
#endif
|
||||
(_case_sensitive ? 0 : REG_ICASE))) != 0)
|
||||
{
|
||||
char message[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue