projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added braces to remove initialisation error
[wxWidgets.git]
/
src
/
msw
/
dummydll.cpp
diff --git
a/src/msw/dummydll.cpp
b/src/msw/dummydll.cpp
index 16f1b40d8c4dc68e0f884d8167d2cf61e0a0f5e7..f1a29bcf1ed5a3e6bcb0621bc8b4b6ecfced7ca9 100644
(file)
--- 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
*/
* 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
/*
* A dummy file to include wx.h. If precompiling wx.h, I
@@
-17,5
+17,9
@@
#include "wx/wxprec.h"
#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
+