Make wx/dirdlg.h safe to include as first wx header
Include wx/defs.h to get wxUSE_DIRDLG value from it, otherwise it could be undefined, and hence evaluate to 0 (unfortunately without even a warning with some compilers), if this header was the first wx header to be included.
This commit is contained in:
parent
27c8601646
commit
5948602f4f
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#ifndef _WX_DIRDLG_H_BASE_
|
||||
#define _WX_DIRDLG_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_DIRDLG
|
||||
|
||||
#include "wx/dialog.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue