From 806317dfccf91b21ad67b862f88456345a8d7fab Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Apr 2015 16:15:56 +0200 Subject: [PATCH] Really really fix use of wxTranslateFromUnicodeFormat() in the unit test. Don't build this test at all under Unix, where this function doesn't exist. (Really really) closes #16118. --- tests/datetime/datetimetest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 9883d875c9..9917d15c99 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1449,6 +1449,8 @@ void DateTimeTestCase::TestDateOnly() CPPUNIT_ASSERT_EQUAL( wxDateTime::Today(), wxDateTime::Now().GetDateOnly() ); } +#if defined(__WINDOWS__) || defined(__WXOSX__) + // This function is defined in src/common/intl.cpp and as it is not public we // need to declare it here explicitly. WXDLLIMPEXP_BASE @@ -1484,4 +1486,6 @@ void DateTimeTestCase::TestTranslateFromUnicodeFormat() wxTranslateFromUnicodeFormat("''H 'o''clock: It''s about time'''")); } +#endif // ports having wxTranslateFromUnicodeFormat() + #endif // wxUSE_DATETIME