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.
This commit is contained in:
Vadim Zeitlin
2018-09-30 00:24:32 +02:00
parent 9619950721
commit b4aaa10032

View File

@@ -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