From a3c02bc377f750b3d1c02e30efaabbfcfee344df Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 11 Nov 2013 09:01:04 +0100 Subject: [PATCH] Pcbnew: fix a build issue when BUILD_GITHUB_PLUGIN is enabled. --- pcbnew/github/github_plugin.cpp | 15 +++++++++++++-- pcbnew/io_mgr.cpp | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/pcbnew/github/github_plugin.cpp b/pcbnew/github/github_plugin.cpp index 62e06134d4..9f77b103b5 100644 --- a/pcbnew/github/github_plugin.cpp +++ b/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 #include -#include // chinese SSL magic + #include #include #include -#include #include +// 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 // chinese SSL magic + #include #include #include #include #include #include +#include using namespace std; diff --git a/pcbnew/io_mgr.cpp b/pcbnew/io_mgr.cpp index 254fc2571b..6baa48513a 100644 --- a/pcbnew/io_mgr.cpp +++ b/pcbnew/io_mgr.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #if defined(BUILD_GITHUB_PLUGIN) #include