From ffcc18580edcea616875fb3170bbd9254d5b60c9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Apr 2015 16:15:56 +0200 Subject: [PATCH] Really fix use of wxTranslateFromUnicodeFormat() in the unit test. Update the function declaration in the test too. (Really) closes #16118. --- tests/datetime/datetimetest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 08ac272282..9883d875c9 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1449,7 +1449,9 @@ void DateTimeTestCase::TestDateOnly() CPPUNIT_ASSERT_EQUAL( wxDateTime::Today(), wxDateTime::Now().GetDateOnly() ); } -// Forward declaration +// This function is defined in src/common/intl.cpp and as it is not public we +// need to declare it here explicitly. +WXDLLIMPEXP_BASE wxString wxTranslateFromUnicodeFormat(const wxString& fmt); void DateTimeTestCase::TestTranslateFromUnicodeFormat()