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.
This commit is contained in:
Vadim Zeitlin
2017-10-28 15:07:35 +02:00
parent d83b144727
commit ce3d416247

View File

@@ -11,7 +11,7 @@
#ifndef _WX_BUFFER_H #ifndef _WX_BUFFER_H
#define _WX_BUFFER_H #define _WX_BUFFER_H
#include "wx/chartype.h" #include "wx/defs.h"
#include "wx/wxcrtbase.h" #include "wx/wxcrtbase.h"
#include <stdlib.h> // malloc() and free() #include <stdlib.h> // malloc() and free()