From ce3d4162474cb7d8de85ce6b94adfa18d6fef802 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Oct 2017 15:07:35 +0200 Subject: [PATCH] Make wx/buffer.h header self-contained Including this header as the first wxWidgets header in a translation unit resulted in compilation errors due to including the internal wx/wxcrtbase.h header before including wx/defs.h, which must be included before it (at least to define DLL import/export macros and sized char types used in wx/wxcrtbase.h). Fix this by simply including wx/defs.h from wx/buffer.h. --- include/wx/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/buffer.h b/include/wx/buffer.h index ca6b340084..9d24f53577 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -11,7 +11,7 @@ #ifndef _WX_BUFFER_H #define _WX_BUFFER_H -#include "wx/chartype.h" +#include "wx/defs.h" #include "wx/wxcrtbase.h" #include // malloc() and free()