X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa74cc2120469258e40d56fcbe87ee279f47ec08..4f2511d706e5274a34e1521e11c1b95fed735b42:/include/wx/buffer.h?ds=sidebyside 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() {