* 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 */
#include <limits.h>
#include <string.h>
+/* must include this after ctype.h inclusion for CodeWarrior/Mac */
+#include "wx/wxchar.h"
+
/*
* Do not insert extras between the "begin" and "end" lines -- this
* chunk is automatically extracted to be fitted into regex.h.
#endif
#define __REG_NOFRONT /* don't want regcomp() and regexec() */
#define _ANSI_ARGS_(x) x
+
+/* under FreeBSD re_comp and re_exec are declared (differently) in unistd.h */
+#ifdef __FreeBSD__
+#define re_comp wx_re_comp
+#define re_exec wx_re_exec
+#endif
/* --- end --- */
/* internal character type and related */