From 6acd08bc954dd1f2ef2060d436018ebe77b0b1f8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Oct 2010 17:14:57 +0000 Subject: [PATCH] Fix tests compilation without wxUSE_REGEX. Don't build wxRegEx unit tests when wxUSE_REGEX == 0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/interactive/input.cpp | 4 +++- tests/regex/regextest.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.45.2