diff --git a/src/unix/taskbarx11.cpp b/src/unix/taskbarx11.cpp index 9535ee340e..cf5e12e52a 100644 --- a/src/unix/taskbarx11.cpp +++ b/src/unix/taskbarx11.cpp @@ -21,6 +21,8 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#ifdef wxHAS_TASK_BAR_ICON + #include "wx/taskbar.h" #ifndef WX_PRECOMP @@ -325,3 +327,5 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) m_iconWnd->PopupMenu(menu); return true; } + +#endif // wxHAS_TASK_BAR_ICON