From f4c0e0c3427a233c8a3fe4920dd27ed839511a35 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Mon, 19 Jan 2015 02:38:19 +0000 Subject: [PATCH] Added wxUSE_XLOCALE ifdef guard to wxTimePickerGenericImp Allow to compile wxQT when configure with --disable-xlocal Thanks @seandepagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/timectrlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index 71867c2f35..f4b6b8fd00 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -85,7 +85,11 @@ public: // nice to add support to "%k" and "%l" (hours with leading blanks // instead of zeros) too as this is the most common unsupported case in // practice. +#if wxUSE_XLOCALE m_useAMPM = wxLocale::GetInfo(wxLOCALE_TIME_FMT).Contains("%p"); +#else + m_useAMPM = false; +#endif m_text->Connect (