X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03af437f7586bba182c76ff73e058f8c16fd8e2b..ba4d737a9ec66377cb4a3b4224aacca8c894bbc1:/include/wx/buffer.h diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 75b47edd69..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() {