Patch to get windows build without precompiled headers.
Tim S
Index: src/plugins/contrib/help_plugin/man2html.cpp
===================================================================
--- src/plugins/contrib/help_plugin/man2html.cpp (revision 4439)
+++ src/plugins/contrib/help_plugin/man2html.cpp (working copy)
@@ -142,6 +142,10 @@
# define BYTEARRAY(x) x
#endif
+#ifdef __MINGW32__
+ #include <io.h>
+#endif
+
#include "man2html.h"
using namespace std;
adding either of below should work, but only adding io.h was tested.
#ifndef WX_PRECOMP
#include <wx/filefn.h>
#endif
or
#ifdef __MINGW32__
#include <io.h>
#endif
I'm not that sure about the change for the bzip2 and zlib #includes. I think it would be better to modify the cbp file to include those directories.
Yeah, you can fix it that way. And in some ways its better.
Tim S
patch below works for me.
Index: src/plugins/contrib/help_plugin/help-plugin.cbp
===================================================================
--- src/plugins/contrib/help_plugin/help-plugin.cbp (revision 4441)
+++ src/plugins/contrib/help_plugin/help-plugin.cbp (working copy)
@@ -44,6 +44,8 @@
<Add option="-DcbDEBUG" />
<Add option="-DTIXML_USE_STL" />
<Add option="-DwxUSE_UNICODE" />
+ <Add directory="bzip2" />
+ <Add directory="zlib" />
</Compiler>
<Linker>
<Add library="bzip2/libbzip2.a" />
Index: src/plugins/contrib/help_plugin/MANFrame.cpp
===================================================================
--- src/plugins/contrib/help_plugin/MANFrame.cpp (revision 4443)
+++ src/plugins/contrib/help_plugin/MANFrame.cpp (working copy)
@@ -7,8 +7,11 @@
#include <wx/wfstream.h>
#include <wx/filename.h>
#include <stdio.h>
#include <bzlib.h>
#include <zlib.h>
+#ifndef CB_PRECOMP
+ #include "globals.h" // cbC2U
+#endif
namespace
{