diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 8ca8cbce87..19e846a192 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -35,6 +35,9 @@ #endif #include #include +#ifdef BOOST_WINDOWS_API +#include +#endif #include #include #include @@ -219,12 +222,18 @@ GncFQQuoteSource::run_cmd (const StrVec& args, const std::string& json_string) c bp::std_out > out_buf, bp::std_err > err_buf, bp::std_in < input_buf, +#ifdef BOOST_WINDOWS_API + bp::windows::create_no_window, +#endif svc); else process = bp::child(c_cmd, args, bp::std_out > out_buf, bp::std_err > err_buf, bp::std_in < input_buf, +#ifdef BOOST_WINDOWS_API + bp::windows::create_no_window, +#endif bp::env["ALPHAVANTAGE_API_KEY"] = m_api_key, svc);