From 31b983bad1d27b3a88e96b379e480ffd7c06352a Mon Sep 17 00:00:00 2001 From: PB Date: Fri, 23 Apr 2021 21:13:59 +0200 Subject: [PATCH] Make menu sample build when using precompiled headers Headers wx/filehistory.h and wx/filename.h were included only when WX_PRECOMP was not defined. However, these two files are not included in wx/wxprec.h, so they must be always included directly. Closes https://github.com/wxWidgets/wxWidgets/pull/2344 --- samples/menu/menu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index f186b34966..3adf4db013 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -23,8 +23,6 @@ #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/bitmap.h" - #include "wx/filehistory.h" - #include "wx/filename.h" #include "wx/frame.h" #include "wx/image.h" #include "wx/menu.h" @@ -34,6 +32,9 @@ #include "wx/textdlg.h" #endif +#include "wx/filehistory.h" +#include "wx/filename.h" + #if !wxUSE_MENUS // nice try... #error "menu sample requires wxUSE_MENUS=1"