From 2a452c0b601095efc6cee69de5cf19df9a5964e3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Jan 2019 23:02:09 +0100 Subject: [PATCH] Fix widgets sample build when using precompiled headers wx/artprov.h is not included from wx/wx.h, so it needs to be always included from this header and not only when !WX_PRECOMP. --- samples/widgets/headerctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/widgets/headerctrl.cpp b/samples/widgets/headerctrl.cpp index aab578601b..8b66b3dc36 100644 --- a/samples/widgets/headerctrl.cpp +++ b/samples/widgets/headerctrl.cpp @@ -27,7 +27,6 @@ // for all others, include the necessary headers #ifndef WX_PRECOMP - #include "wx/artprov.h" #include "wx/button.h" #include "wx/checkbox.h" #include "wx/radiobox.h" @@ -38,6 +37,8 @@ #include "wx/headerctrl.h" +#include "wx/artprov.h" + #include "widgets.h" #include "icons/header.xpm"