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:
@@ -23,8 +23,6 @@
|
|||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/bitmap.h"
|
#include "wx/bitmap.h"
|
||||||
#include "wx/filehistory.h"
|
|
||||||
#include "wx/filename.h"
|
|
||||||
#include "wx/frame.h"
|
#include "wx/frame.h"
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include "wx/menu.h"
|
#include "wx/menu.h"
|
||||||
@@ -34,6 +32,9 @@
|
|||||||
#include "wx/textdlg.h"
|
#include "wx/textdlg.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/filehistory.h"
|
||||||
|
#include "wx/filename.h"
|
||||||
|
|
||||||
#if !wxUSE_MENUS
|
#if !wxUSE_MENUS
|
||||||
// nice try...
|
// nice try...
|
||||||
#error "menu sample requires wxUSE_MENUS=1"
|
#error "menu sample requires wxUSE_MENUS=1"
|
||||||
|
Reference in New Issue
Block a user