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:
parent
343d24ec32
commit
31b983bad1
1 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue