Fix WriteConsole signature

This commit is contained in:
Victor Zverovich
2020-09-27 13:49:40 -07:00
parent 51f2e2ca27
commit 79694d424c
2 changed files with 16 additions and 5 deletions
+11 -1
View File
@@ -19,7 +19,10 @@
#include "gtest-extra.h"
#include "util.h"
#undef max
#ifdef _WIN32
# include <windows.h>
# undef max
#endif
using fmt::detail::bigint;
using fmt::detail::fp;
@@ -409,3 +412,10 @@ TEST(UtilTest, WriteFallbackUIntPtr) {
fmt::detail::fallback_uintptr(reinterpret_cast<void*>(0xface)), nullptr);
EXPECT_EQ(s, "0xface");
}
#ifdef _WIN32
TEST(UtilTest, WriteConsoleSignature) {
decltype(WriteConsoleW)* p = fmt::detail::WriteConsoleW;
(void)p;
}
#endif