X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7ba88991461804c2737da29e1a8f396f3bcf2f3..7b11429dc38b6fd1b70d013db023eb62aeae062a:/src/regex/regexec.c

diff --git a/src/regex/regexec.c b/src/regex/regexec.c
index a1037648e7..d64bc28fcb 100644
--- a/src/regex/regexec.c
+++ b/src/regex/regexec.c
@@ -5,13 +5,17 @@
  * macros that code uses.  This lets the same code operate on two different
  * representations for state sets.
  */
+#if defined(__MWERKS__) && !defined(__MACH__)
+typedef long off_t ;
+#else
 #include <sys/types.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
 #include <ctype.h>
-#include <regex.h>
+#include "regex.h"
 
 #include "utils.h"
 #include "regex2.h"