X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71b5725f30bd6006f77f56ffdeb697b72241888d..c2a331e02732bb6a04a42ebf646d54b4373ad122:/src/common/regex.cpp diff --git a/src/common/regex.cpp b/src/common/regex.cpp index e96257c8b6..9c7e55c040 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -18,7 +18,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "regex.h" #endif @@ -43,7 +43,9 @@ #include #endif +#ifndef __WXWINCE__ #include +#endif #include "wx/regex.h" @@ -146,9 +148,7 @@ wxString wxRegExImpl::GetErrorMsg(int errorcode) const msg = wxString(buf.data(), wxConvLibc); #else // !Unicode - (void)regerror(errorcode, &m_RegEx, msg.GetWriteBuf(len), len); - - msg.UngetWriteBuf(); + (void)regerror(errorcode, &m_RegEx, wxStringBuffer(msg, len), len); #endif // Unicode/!Unicode } else // regerror() returned 0