]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/buffer.h
Minor corrections to make dist after reports
[wxWidgets.git] / include / wx / buffer.h
index 75b47edd693706ca40fbc5e0821e9dbaabf05845..32443237373ac92b4429d53f69cfe227f3dac051 100644 (file)
@@ -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()
     {