From 2d727e69c14fc2a7dc3d633104d352e42b5e0622 Mon Sep 17 00:00:00 2001 From: CRGBS <32331418+CRGBS@users.noreply.github.com> Date: Wed, 24 May 2023 16:38:28 +0800 Subject: [PATCH] Update common.cpp --- examples/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/common.cpp b/examples/common.cpp index 4ead54fdf..cb2714a4b 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -583,7 +583,7 @@ void console_set_color(console_state & con_st, console_color_t color) { } char32_t getchar32() { -/*#if defined(_WIN32) +#if defined(_WIN32) HANDLE hConsole = GetStdHandle(STD_INPUT_HANDLE); wchar_t high_surrogate = 0; @@ -613,7 +613,7 @@ char32_t getchar32() { return static_cast(wc); } } -#else*/ +#else wchar_t wc = getwchar(); if (static_cast(wc) == WEOF) { return WEOF;