diff --git a/tests/interactive/input.cpp b/tests/interactive/input.cpp index 8344ef5c6a..1e45d50309 100644 --- a/tests/interactive/input.cpp +++ b/tests/interactive/input.cpp @@ -32,7 +32,9 @@ #define TEST_SNGLINST #define TEST_FTP #define TEST_INFO_FUNCTIONS -#define TEST_REGEX +#if wxUSE_REGEX + #define TEST_REGEX +#endif #define TEST_DATETIME // ---------------------------------------------------------------------------- diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index bfe200932a..c31b639834 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -36,6 +36,8 @@ #pragma hdrstop #endif +#if wxUSE_REGEX + // for all others, include the necessary headers #ifndef WX_PRECOMP #include "wx/wx.h" @@ -393,3 +395,5 @@ void RegExTestSuite::add( #endif // wxHAS_REGEX_ADVANCED + +#endif // wxUSE_REGEX