X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1701c4d42145de20ece5ddb87c7f4b993445bf77..3c8cbc12caeab51f2b483cf7d419417801679670:/src/regex/regcustom.h diff --git a/src/regex/regcustom.h b/src/regex/regcustom.h index 825a3c35e7..69e7c92069 100644 --- a/src/regex/regcustom.h +++ b/src/regex/regcustom.h @@ -26,9 +26,6 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* headers if any */ -#include "wx/wxchar.h" - /* overrides for regguts.h definitions, if any */ /* regguts only includes standard headers if NULL is not defined, so do it * ourselves here */ @@ -38,6 +35,11 @@ #include #include +/* must include this after ctype.h inclusion for CodeWarrior/Mac */ +#include "wx/defs.h" +#include "wx/chartype.h" +#include "wx/wxcrtbase.h" + /* * Do not insert extras between the "begin" and "end" lines -- this * chunk is automatically extracted to be fitted into regex.h. @@ -70,8 +72,8 @@ #endif #if wxUSE_UNICODE # define __REG_WIDE_T wxChar -# define __REG_WIDE_COMPILE re_comp -# define __REG_WIDE_EXEC re_exec +# define __REG_WIDE_COMPILE wx_re_comp +# define __REG_WIDE_EXEC wx_re_exec # define __REG_NOCHAR /* don't want the char versions */ #endif #define __REG_NOFRONT /* don't want regcomp() and regexec() */ @@ -113,8 +115,8 @@ typedef int celt; /* type to hold chr, MCCE number, or NOCELT */ #define iscspace(x) ((wxUChar)(x) < 128 && isspace(x)) /* name the external functions */ -#define compile re_comp -#define exec re_exec +#define compile wx_re_comp +#define exec wx_re_exec /* enable/disable debugging code (by whether REG_DEBUG is defined or not) */ #if 0 /* no debug unless requested by makefile */