X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03af437f7586bba182c76ff73e058f8c16fd8e2b..24f86c43c427160b7fb5a1b06c4c0861cc6cc72f:/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() {