]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/taskbar.h
workaround a Watcom build
[wxWidgets.git] / include / wx / taskbar.h
index e80aff52177926f51cbfbe0df81e9a07604fd472..3c829f61a5db3204855fd47dc205c2db6751f001 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _WX_TASKBAR_H_BASE_
 #define _WX_TASKBAR_H_BASE_
 
+#include "wx/defs.h"
+
+#ifdef wxHAS_TASK_BAR_ICON
+
 #include "wx/event.h"
 
 // ----------------------------------------------------------------------------
@@ -22,7 +26,6 @@ class WXDLLEXPORT wxTaskBarIconBase : public wxEvtHandler
     #include "wx/unix/taskbarx11.h"
 #endif
 
-
 // ----------------------------------------------------------------------------
 // wxTaskBarIcon events
 // ----------------------------------------------------------------------------
@@ -57,5 +60,8 @@ END_DECLARE_EVENT_TYPES()
 #define EVT_TASKBAR_LEFT_DCLICK(fn)  DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
 #define EVT_TASKBAR_RIGHT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),
 
+#endif
+    // wxHAS_TASK_BAR_ICON
+
 #endif
     // _WX_TASKBAR_H_BASE_