]> git.saurik.com Git - wxWidgets.git/commitdiff
only define wxEventPtr in wxBase, not wxCore
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Jan 2008 12:57:04 +0000 (12:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Jan 2008 12:57:04 +0000 (12:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index 0ba18aa5bce691c2240b5c9bb0e53bb7b4fe3b4b..d122c8d43484a92cf926e743004a6473067705eb 100644 (file)
 #endif
 
 #include "wx/thread.h"
-#include "wx/ptr_scpd.h"
 
-wxDECLARE_SCOPED_PTR(wxEvent, wxEventPtr)
-wxDEFINE_SCOPED_PTR(wxEvent, wxEventPtr)
+#if wxUSE_BASE
+    #include "wx/ptr_scpd.h"
+
+    wxDECLARE_SCOPED_PTR(wxEvent, wxEventPtr)
+    wxDEFINE_SCOPED_PTR(wxEvent, wxEventPtr)
+#endif // wxUSE_BASE
 
 // ----------------------------------------------------------------------------
 // wxWin macros