From 86d19346c5e0abd5c2575d0a305ddc48f05fddf8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Jan 2012 10:21:46 +0000 Subject: [PATCH] Fix wxDateTime unit test compilation without PCH. Include wx/time.h to get wxGetTimeZone() declaration. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/datetime/datetimetest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index c8129a8127..3d4fad74d1 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -17,11 +17,12 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP -#endif // WX_PRECOMP - #if wxUSE_DATETIME +#ifndef WX_PRECOMP + #include "wx/time.h" // wxGetTimeZone() +#endif // WX_PRECOMP + #include "wx/wxcrt.h" // for wxStrstr() #include "testdate.h"