X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa74cc2120469258e40d56fcbe87ee279f47ec08..b27679518606c4739f1821fbb600687b17497dbf:/include/wx/buffer.h diff --git a/include/wx/buffer.h b/include/wx/buffer.h index e0de6088e8..3244323737 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -168,7 +168,14 @@ private: // placeholder for NULL string, to simplify this code // NB: this is defined in string.cpp, not (non-existent) buffer.cpp +#ifdef __MINGW32__ + // MinGW requires explicit WXDLLIMPEXP_DATA_BASE to avoid compilation + // errors + static WXDLLIMPEXP_DATA_BASE(Data) NullData; +#else + // but Visual C++ doesn't like it static Data NullData; +#endif void IncRef() {