Browse Source

Pcbnew: fix a build issue when BUILD_GITHUB_PLUGIN is enabled.

pull/1/head
jean-pierre charras 12 years ago
parent
commit
a3c02bc377
  1. 15
      pcbnew/github/github_plugin.cpp
  2. 1
      pcbnew/io_mgr.cpp

15
pcbnew/github/github_plugin.cpp

@ -37,22 +37,33 @@
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 <boost/ptr_container/ptr_map.hpp>
#include <avhttp.hpp> // chinese SSL magic
#include <wx/zipstrm.h>
#include <wx/mstream.h>
#include <wx/uri.h>
#include <macros.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 <richio.h>
#include <pcb_parser.h>
#include <class_board.h>
#include <github_plugin.h>
#include <class_module.h>
#include <macros.h>
using namespace std;

1
pcbnew/io_mgr.cpp

@ -31,6 +31,7 @@
#include <eagle_plugin.h>
#include <pcad2kicadpcb_plugin/pcad_plugin.h>
#include <gpcb_plugin.h>
#include <config.h>
#if defined(BUILD_GITHUB_PLUGIN)
#include <github/github_plugin.h>

Loading…
Cancel
Save