Update common.cpp

This commit is contained in:
CRGBS 2023-05-24 16:38:28 +08:00 committed by GitHub
parent 04ff4fda39
commit 2d727e69c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<char32_t>(wc);
}
}
#else*/
#else
wchar_t wc = getwchar();
if (static_cast<wint_t>(wc) == WEOF) {
return WEOF;