]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/spinctrlcmn.cpp
Don't return invalid size from wxDir::GetTotalSize() for empty dirs.
[wxWidgets.git] / src / common / spinctrlcmn.cpp
index 8b4e62adc15f616f70076370fa5239eb57607762..404f28a241625e7f62d7cbfafcbb6dc03545fc74 100644 (file)
@@ -26,6 +26,9 @@
 #include "wx/spinbutt.h"
 #include "wx/spinctrl.h"
 
-wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEvent)
-wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED, wxSpinDoubleEvent)
+#if wxUSE_SPINCTRL
 
+wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEvent);
+wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED, wxSpinDoubleEvent);
+
+#endif // wxUSE_SPINCTRL