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;