]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dummydll.cpp
fixed FindOrCreatePen/Brush() for the case when the object couldn't be created succes...
[wxWidgets.git] / src / msw / dummydll.cpp
index 16f1b40d8c4dc68e0f884d8167d2cf61e0a0f5e7..f1a29bcf1ed5a3e6bcb0621bc8b4b6ecfced7ca9 100644 (file)
@@ -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
+