From b4aaa1003247535675f21b69cf800353012ca81c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Sep 2018 00:24:32 +0200 Subject: [PATCH] Fix wx/display.h compilation when it's the first included header Include wx/defs.h to ensure that wxUSE_DISPLAY is defined before it is checked for. --- include/wx/display.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/display.h b/include/wx/display.h index 4678672138..1c8d04379d 100644 --- a/include/wx/display.h +++ b/include/wx/display.h @@ -10,6 +10,8 @@ #ifndef _WX_DISPLAY_H_BASE_ #define _WX_DISPLAY_H_BASE_ +#include "wx/defs.h" + // NB: no #if wxUSE_DISPLAY here, the display geometry part of this class (but // not the video mode stuff) is always available but if wxUSE_DISPLAY == 0 // it becomes just a trivial wrapper around the old wxDisplayXXX() functions