diff --git a/include/internal/catch_debugger.hpp b/include/internal/catch_debugger.hpp index 77ab29cc..63d476bb 100644 --- a/include/internal/catch_debugger.hpp +++ b/include/internal/catch_debugger.hpp @@ -109,7 +109,9 @@ #endif // Platform #ifdef CATCH_PLATFORM_WINDOWS - extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* ); + +#include "catch_windows_h_proxy.h" + namespace Catch { void writeToDebugConsole( std::string const& text ) { ::OutputDebugStringA( text.c_str() );