diff --git a/src/Autopilot/component.hxx b/src/Autopilot/component.hxx index eb848d663..3f8d60352 100644 --- a/src/Autopilot/component.hxx +++ b/src/Autopilot/component.hxx @@ -27,7 +27,6 @@ # include #endif -#include #include #include diff --git a/src/Autopilot/logic.cxx b/src/Autopilot/logic.cxx index 1400b6fb8..83270427d 100644 --- a/src/Autopilot/logic.cxx +++ b/src/Autopilot/logic.cxx @@ -19,6 +19,14 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // +// for some obscure reason, MSVC needs this to compile +#ifdef _MSC_VER +#ifndef HAVE_CONFIG_H +# include +#endif +#include +#endif + #include "logic.hxx" using namespace FGXMLAutopilot;