From ccb64682ebb17ab615587260ceac2e9d3f3aa7d5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:39:03 +0000 Subject: [PATCH] add if preprocessor directive, if wxUniv build with MSW, include wx/stockitem.h, others are not. with x11 and this head file will cause error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/tglbtn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/univ/tglbtn.cpp b/src/univ/tglbtn.cpp index fb37366b7a..23b4bfe116 100644 --- a/src/univ/tglbtn.cpp +++ b/src/univ/tglbtn.cpp @@ -20,7 +20,10 @@ #include "wx/univ/renderer.h" #include "wx/univ/colschem.h" #include "wx/univ/theme.h" + +#if defined(__WXMSW__) #include "wx/stockitem.h" +#endif wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent );