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
This commit is contained in:
Vadim Zeitlin
2020-03-30 15:26:00 +02:00
parent 00f6cfec51
commit 6c061b6bf9

View File

@@ -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);