From 04fdd8736a403bb3c6b2bd1430e48178dd8b7e45 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Mon, 15 Dec 2003 00:24:35 +0000 Subject: [PATCH] Fixed Mac CodeWarrior compilation (there's no ). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/regex.cpp | 7 +++++-- src/regex/regcustom.h | 10 +++++++++- src/regex/regex.h | 9 ++++++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/common/regex.cpp b/src/common/regex.cpp index 2efc4a026b..072ea9df0f 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -38,9 +38,12 @@ #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 please report details to +// wx-dev@lists.wxwindows.org #if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__) - #include +# include #endif #ifndef __WXWINCE__ diff --git a/src/regex/regcustom.h b/src/regex/regcustom.h index 02db688850..d13dcef807 100644 --- a/src/regex/regcustom.h +++ b/src/regex/regcustom.h @@ -29,7 +29,15 @@ */ /* headers if any */ -#include + +// 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 please report details to +// wx-dev@lists.wxwindows.org +#if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__) +# include +#endif + #include #include #include diff --git a/src/regex/regex.h b/src/regex/regex.h index a1fcec2e1c..b3e0e0a8ed 100644 --- a/src/regex/regex.h +++ b/src/regex/regex.h @@ -39,7 +39,14 @@ extern "C" { #endif -#include +// 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 please report details to +// wx-dev@lists.wxwindows.org +#if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__) +# include +#endif + #include #include -- 2.45.2