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
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:39:03 +00:00
parent d807edb681
commit ccb64682eb

View File

@@ -20,7 +20,10 @@
#include "wx/univ/renderer.h" #include "wx/univ/renderer.h"
#include "wx/univ/colschem.h" #include "wx/univ/colschem.h"
#include "wx/univ/theme.h" #include "wx/univ/theme.h"
#if defined(__WXMSW__)
#include "wx/stockitem.h" #include "wx/stockitem.h"
#endif
wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent ); wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent );