From d973514da52e24b68166c21f8ae73501cf2a1b52 Mon Sep 17 00:00:00 2001 From: CRGBS <32331418+CRGBS@users.noreply.github.com> Date: Wed, 24 May 2023 14:12:47 +0800 Subject: [PATCH] Update common.cpp --- examples/common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/common.cpp b/examples/common.cpp index 1308f8410..244fb67d6 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -578,7 +578,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; @@ -608,7 +608,7 @@ char32_t getchar32() { return static_cast(wc); } } -#else +#else*/ wchar_t wc = getwchar(); if (static_cast(wc) == WEOF) { return WEOF; @@ -627,7 +627,7 @@ char32_t getchar32() { #endif return static_cast(wc); -#endif +//#endif } void pop_cursor(console_state & con_st) {