X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbcb41664baa3006deb0a6d27ad1193fa792ea5e..eeccd5d94ce6b11f36af95db4ac528a2e2e0c4c5:/src/msw/dummy.cpp?ds=sidebyside diff --git a/src/msw/dummy.cpp b/src/msw/dummy.cpp index 50f5c99001..83850c956c 100644 --- a/src/msw/dummy.cpp +++ b/src/msw/dummy.cpp @@ -39,8 +39,11 @@ #pragma hdrstop #endif -// Foils optimizations in Visual C++ (see also wx_main.cc) +// Foils optimizations in Visual C++ (see also app.cpp). Without it, +// dummy.obj isn't linked and we get a linker error. +#if defined(_MSC_VER) char wxDummyChar=0; +#endif #if defined(WXUSINGDLL)