X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..84bdb0d8d7d7fe3d7cd6a2e5f50ee247ce2af5df:/src/msw/dummydll.cpp diff --git a/src/msw/dummydll.cpp b/src/msw/dummydll.cpp index 16f1b40d8c..f1a29bcf1e 100644 --- a/src/msw/dummydll.cpp +++ b/src/msw/dummydll.cpp @@ -1,13 +1,13 @@ /* - * File: dummydll.cc - * Purpose: - * Author: Julian Smart - * Created: 1993 - * Updated: + * File: dummydll.cc + * Purpose: + * Author: Julian Smart + * Created: 1993 + * Updated: * Copyright: (c) 1993, AIAI, University of Edinburgh */ -/* static const char sccsid[] = "@(#)dummydll.cc 1.2 5/9/94"; */ +/* static const char sccsid[] = "@(#)dummydll.cc 1.2 5/9/94"; */ /* * A dummy file to include wx.h. If precompiling wx.h, I @@ -17,5 +17,9 @@ #include "wx/wxprec.h" -// Foils optimizations in Visual C++ (see also wx_main.cc) -char wxDummyChar=0; +// Foils optimizations in Visual C++ (see also app.cpp). Without it, +// dummy.obj isn't linked and we get a linker error. +#if defined(__VISUALC__) + char wxDummyChar=0; +#endif +