X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6670f56440ae9209b3e2e51e06acf3bc5aaf1905..8145496b9bd1cbccf7411c5e76f72a9dfc7ebf1b:/src/os2/tabctrl.cpp

diff --git a/src/os2/tabctrl.cpp b/src/os2/tabctrl.cpp
index 8c35755897..2d4191e90d 100644
--- a/src/os2/tabctrl.cpp
+++ b/src/os2/tabctrl.cpp
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        tabctrl.cpp
+// Name:        src/os2/tabctrl.cpp
 // Purpose:     wxTabCtrl
 // Author:      David Webster
 // Modified by:
@@ -12,8 +12,11 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_TAB_DIALOG
+
 #ifndef WX_PRECOMP
-#include "wx/wx.h"
+    #include "wx/wx.h"
+    #include "wx/app.h"
 #endif
 
 #include "malloc.h"
@@ -23,9 +26,8 @@
 
 //#include "wx/msw/dib.h"
 #include "wx/os2/tabctrl.h"
-#include "wx/app.h"
 #include "wx/os2/private.h"
-#include "wx/generic/imaglist.h"
+#include "wx/imaglist.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
 
@@ -79,7 +81,7 @@ bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons
 
     SubclassWin((WXHWND) hWndTabCtrl);
 
-    return FALSE;
+    return false;
 }
 
 wxTabCtrl::~wxTabCtrl()
@@ -354,3 +356,5 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id)
            :wxCommandEvent(commandType, id)
 {
 }
+
+#endif // wxUSE_TAB_DIALOG