From 186252928543e72df1ededa03e88e7af87974b49 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 9 Mar 2012 10:12:40 +0000 Subject: [PATCH] Exclude wxMSW-only code from wxUniversal build under Windows. wxListCtrl::EndEditLabel() isn't available in wxUniv, it's wxMSW-only. This fixes the sample compilation in wxUniv/MSW build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/listctrl/listtest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 966cbdb9ed..b8480dc17a 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -845,7 +845,7 @@ void MyFrame::OnAdd(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnEdit(wxCommandEvent& WXUNUSED(event)) { // demonstrate cancelling editing: this currently is wxMSW-only -#ifdef __WXMSW__ +#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) if ( m_listCtrl->GetEditControl() ) { m_listCtrl->EndEditLabel(true); -- 2.45.2