Commit a3c02bc3 authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: fix a build issue when BUILD_GITHUB_PLUGIN is enabled.

parent b3b9e96c
...@@ -37,22 +37,33 @@ ...@@ -37,22 +37,33 @@
could use the above API. could use the above API.
*/ */
#ifdef WIN32
// defines needed by avhttp
// Minimal Windows version is XP: Google for _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#define WINVER 0x0501
#endif
#include <sstream> #include <sstream>
#include <boost/ptr_container/ptr_map.hpp> #include <boost/ptr_container/ptr_map.hpp>
#include <avhttp.hpp> // chinese SSL magic
#include <wx/zipstrm.h> #include <wx/zipstrm.h>
#include <wx/mstream.h> #include <wx/mstream.h>
#include <wx/uri.h> #include <wx/uri.h>
#include <macros.h>
#include <fctsys.h> #include <fctsys.h>
// Under Windows Mingw/msys, avhttp.hpp should be included after fctsys.h
// in fact after wx/wx.h, included by fctsys.h,
// to avoid issues (perhaps due to incompatible defines)
#include <avhttp.hpp> // chinese SSL magic
#include <io_mgr.h> #include <io_mgr.h>
#include <richio.h> #include <richio.h>
#include <pcb_parser.h> #include <pcb_parser.h>
#include <class_board.h> #include <class_board.h>
#include <github_plugin.h> #include <github_plugin.h>
#include <class_module.h> #include <class_module.h>
#include <macros.h>
using namespace std; using namespace std;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <eagle_plugin.h> #include <eagle_plugin.h>
#include <pcad2kicadpcb_plugin/pcad_plugin.h> #include <pcad2kicadpcb_plugin/pcad_plugin.h>
#include <gpcb_plugin.h> #include <gpcb_plugin.h>
#include <config.h>
#if defined(BUILD_GITHUB_PLUGIN) #if defined(BUILD_GITHUB_PLUGIN)
#include <github/github_plugin.h> #include <github/github_plugin.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment