X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..5d32001b326f4c1ef1e5e34d2bc634298b14c77d:/src/mac/treectrl.cpp

diff --git a/src/mac/treectrl.cpp b/src/mac/treectrl.cpp
index 3aea32e970..67ccc4f022 100644
--- a/src/mac/treectrl.cpp
+++ b/src/mac/treectrl.cpp
@@ -14,11 +14,14 @@
 #endif
 
 #include "wx/stubs/textctrl.h"
+#include "wx/treebase.h"
 #include "wx/stubs/treectrl.h"
 
+#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxTreeCtrl, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxTreeItem, wxObject)
 
+#endif
 
 wxTreeCtrl::wxTreeCtrl()
 {