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
This commit is contained in:
PB
2021-04-23 21:13:59 +02:00
committed by Vadim Zeitlin
parent 343d24ec32
commit 31b983bad1

View File

@@ -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"