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