From 5948602f4f7700be7767a46a20cf53959f9659fc Mon Sep 17 00:00:00 2001 From: Pete Stieber Date: Tue, 5 Jan 2016 01:29:19 +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. --- include/wx/dirdlg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/dirdlg.h b/include/wx/dirdlg.h index 9bce59aec5..dfdbffc737 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"