X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94aff5ff86189e39b7a95fc62e886374c060a2cf..cc24bf919256e8e1d317dbb8e67df6d007d641ea:/src/common/btncmn.cpp

diff --git a/src/common/btncmn.cpp b/src/common/btncmn.cpp
index 92e8103586..2207057082 100644
--- a/src/common/btncmn.cpp
+++ b/src/common/btncmn.cpp
@@ -23,6 +23,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_BUTTON
+
 #ifndef WX_PRECOMP
     #include "wx/button.h"
     #include "wx/toplevel.h"
@@ -42,3 +44,4 @@ wxWindow *wxButtonBase::SetDefault()
     return tlw->SetDefaultItem(this);
 }
 
+#endif // wxUSE_BUTTON