]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/regex.cpp
Since they are new style classes we need to use the __reduce__
[wxWidgets.git] / src / common / regex.cpp
index f499c1628d7befccd73c5e050e854490552f52da..072ea9df0fb7244dc60bfbd38d5c48eeaed718fe 100644 (file)
     #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 <sys/types.h> please report details to
+// wx-dev@lists.wxwindows.org
 #if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__)
-    #include <sys/types.h>
+#   include <sys/types.h>
 #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