diff --git a/core/cfg/cl.cpp b/core/cfg/cl.cpp index 52fc46ce5..3f7af8e53 100644 --- a/core/cfg/cl.cpp +++ b/core/cfg/cl.cpp @@ -108,11 +108,13 @@ int setconfig(wchar** arg,int cl) #if !defined(DEF_CONSOLE) #if defined(linux) || defined(_ANDROID) #define DEF_CONSOLE -#elif defined(_WIN32) -#include #endif #endif +#if defined(_WIN32) +#include +#endif + void cli_pause() { #ifdef DEF_CONSOLE @@ -121,7 +123,7 @@ void cli_pause() #if defined(_WIN32) printf("\nPress a key to exit.\n"); - getch(); + _getch(); #else printf("\nPress enter to exit.\n"); char c = getchar();