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
This commit is contained in:
Vadim Zeitlin
2010-10-03 17:14:57 +00:00
parent 4cfee1efef
commit 6acd08bc95
2 changed files with 7 additions and 1 deletions

View File

@@ -32,7 +32,9 @@
#define TEST_SNGLINST #define TEST_SNGLINST
#define TEST_FTP #define TEST_FTP
#define TEST_INFO_FUNCTIONS #define TEST_INFO_FUNCTIONS
#if wxUSE_REGEX
#define TEST_REGEX #define TEST_REGEX
#endif
#define TEST_DATETIME #define TEST_DATETIME
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -36,6 +36,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_REGEX
// for all others, include the necessary headers // for all others, include the necessary headers
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h" #include "wx/wx.h"
@@ -393,3 +395,5 @@ void RegExTestSuite::add(
#endif // wxHAS_REGEX_ADVANCED #endif // wxHAS_REGEX_ADVANCED
#endif // wxUSE_REGEX