From 0adc6b2bce3a46f8bed8a3bef14abfbbcb413012 Mon Sep 17 00:00:00 2001 From: Ender's Games Date: Thu, 20 Sep 2018 17:47:00 -0400 Subject: [PATCH] Compatibility getch() for VS 2008/2013 --- core/cfg/cl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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();