Patch #1995 2007-05-10 23:46
stahta01
Enable codesnippets build using wxMSW without PCH- Download
- 1995-Enable_codesni.patch (511 bytes)
Index: src/plugins/contrib/codesnippets/memorymappedfile.h
===================================================================
--- src/plugins/contrib/codesnippets/memorymappedfile.h (revision 3955)
+++ src/plugins/contrib/codesnippets/memorymappedfile.h (working copy)
@@ -60,7 +60,8 @@
#endif
#ifdef __WXMSW__
-#include <windows.h>
+// includes windows.h but wraps it to prevent errors per wxWidgets special note tn0019.txt
+#include <wx/msw/wrapwin.h>
#else
#include <unistd.h>
#include <sys/mman.h>
History
stahta01 2007-05-10 23:51
Please use forum thread for long comments or questions http://forums.codeblocks.org/index.php/topic,5881.msg45006.html#msg45006
pecan 2007-05-11 16:12
Done, thanks.