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