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:
@@ -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
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user