diff --git a/test/doctest/doctest.h b/test/doctest/doctest.h index e70d3f10..0ff83dd0 100644 --- a/test/doctest/doctest.h +++ b/test/doctest/doctest.h @@ -420,7 +420,11 @@ extern "C" __declspec(dllimport) void __stdcall DebugBreak(); // so the header is used - also it is very light and doesn't drag a ton of stuff //#include #include -#else // _LIBCPP_VERSION +#elif (_MSC_VER >= 1920) +// MSVC 2019 removes from +// https://developercommunity.visualstudio.com/content/problem/525532/visual-studio-2019-compilation-issue.html +#include +#else #ifndef DOCTEST_CONFIG_USE_IOSFWD namespace std { diff --git a/test/file_tests.cpp b/test/file_tests.cpp index 89742b8f..b1706946 100644 --- a/test/file_tests.cpp +++ b/test/file_tests.cpp @@ -20,6 +20,7 @@ #include "io_service_fixture.hpp" #include +#include #include "doctest/doctest.h" TEST_SUITE_BEGIN("file");