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