// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/spinctrl.h"
-
#if wxUSE_SPINCTRL
-#include "wx/utils.h"
+#include "wx/spinctrl.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/utils.h"
+ #include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
+ #include "wx/math.h"
+#endif
-#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
-#include "wx/math.h"
#include "wx/gtk1/private.h"
//-----------------------------------------------------------------------------