From 3ae88147e223788dddfdf5d3739c98c5d6574c18 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 28 Sep 2020 06:50:09 -0700 Subject: [PATCH] Fix declaration --- include/fmt/format-inl.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 52b2206c..c1de4fa8 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -2823,12 +2823,9 @@ FMT_FUNC std::string detail::vformat(string_view format_str, format_args args) { #ifdef _WIN32 namespace detail { -using dword = conditional_t; -extern "C" int __stdcall WriteConsoleW(void* hConsoleOutput, - const void* lpBuffer, - dword nNumberOfCharsToWrite, - dword* lpNumberOfCharsWritten, - void* lpReserved); +using dword = conditional_t; +extern "C" __declspec(dllimport) int __stdcall WriteConsoleW( // + void*, const void*, dword, dword*, void*); } // namespace detail #endif