Check for wxUSE_ACTIVITYINDICATOR in the widgets sample.

This fixes the sample compilation with default configuration when using MinGW
as it uses wxUSE_GRAPHICS_CONTEXT=0 by default and so wxUSE_ACTIVITYINDICATOR
is turned off by default for it too.
This commit is contained in:
Vadim Zeitlin
2015-06-24 02:28:29 +02:00
parent 5ae3e4ff12
commit 14f8c7e7e8

View File

@@ -23,6 +23,8 @@
#pragma hdrstop
#endif
#if wxUSE_ACTIVITYINDICATOR
// for all others, include the necessary headers
#ifndef WX_PRECOMP
#include "wx/button.h"
@@ -149,3 +151,5 @@ void ActivityIndicatorWidgetsPage::RecreateWidget()
m_sizerIndicator->AddStretchSpacer();
m_sizerIndicator->Layout();
}
#endif // wxUSE_ACTIVITYINDICATOR