X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cffadd8447201d0e2e1b3de6f8a24b967da9140c..02376d73485f39cc05721e5ea95e43cd48105fd5:/src/common/regex.cpp diff --git a/src/common/regex.cpp b/src/common/regex.cpp index f499c1628d..072ea9df0f 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -38,9 +38,12 @@ #include "wx/intl.h" #endif //WX_PRECOMP -// FreeBSD & Watcom require this, it probably doesn't hurt for others +// FreeBSD, Watcom and DMars require this, CW doesn't have nor need it. +// Others also don't seem to need it. If you have an error related to +// (not) including please report details to +// wx-dev@lists.wxwindows.org #if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__) - #include +# include #endif #ifndef __WXWINCE__ @@ -188,7 +191,7 @@ bool wxRegExImpl::Compile(const wxString& expr, int flags) // compile it #ifdef wx_wchar - int errorcode = wx_regcomp(&m_RegEx, expr, expr.Length(), REG_ADVANCED); + int errorcode = wx_regcomp(&m_RegEx, expr, expr.Length(), flagsRE); #else int errorcode = regcomp(&m_RegEx, expr.mb_str(), flagsRE); #endif