Fix declaration

This commit is contained in:
Victor Zverovich 2020-09-28 06:50:09 -07:00
parent 6417952574
commit 3ae88147e2

View File

@ -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<sizeof(long) == 8, unsigned, unsigned long>;
extern "C" int __stdcall WriteConsoleW(void* hConsoleOutput,
const void* lpBuffer,
dword nNumberOfCharsToWrite,
dword* lpNumberOfCharsWritten,
void* lpReserved);
using dword = conditional_t<sizeof(long) == 4, unsigned long, unsigned>;
extern "C" __declspec(dllimport) int __stdcall WriteConsoleW( //
void*, const void*, dword, dword*, void*);
} // namespace detail
#endif