From 6c061b6bf91e8cd825c28e0af9875431a3e6d7b0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Mar 2020 15:26:00 +0200 Subject: [PATCH] Fix compilation of spinctrlcmn.cpp when wxUSE_SPINCTRL==0 Don't include wx/private/spinctrl.h header (nor the other ones) at all in this case, as it doesn't compile in this build configuration. This fixes one of build problems under iOS. See https://github.com/wxWidgets/wxWidgets/pull/1773 --- src/common/spinctrlcmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/spinctrlcmn.cpp b/src/common/spinctrlcmn.cpp index 7098ff1d04..42e571dfac 100644 --- a/src/common/spinctrlcmn.cpp +++ b/src/common/spinctrlcmn.cpp @@ -22,13 +22,13 @@ #pragma hdrstop #endif +#if wxUSE_SPINCTRL + #include "wx/spinbutt.h" #include "wx/spinctrl.h" #include "wx/private/spinctrl.h" -#if wxUSE_SPINCTRL - wxDEFINE_EVENT(wxEVT_SPINCTRL, wxSpinEvent); wxDEFINE_EVENT(wxEVT_SPINCTRLDOUBLE, wxSpinDoubleEvent);