From eed32268a2cbe9b69248afc9550778957b8711f7 Mon Sep 17 00:00:00 2001 From: Pete Stieber Date: Tue, 5 Jan 2016 01:32:49 +0100 Subject: [PATCH] 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 is a backport of 5948602f4f7700be7767a46a20cf53959f9659fc from master) --- include/wx/dirdlg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/dirdlg.h b/include/wx/dirdlg.h index b7b7474ab5..f4887051ba 100644 --- a/include/wx/dirdlg.h +++ b/include/wx/dirdlg.h @@ -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"