diff --git a/src/openrct2/platform/Platform.Win32.cpp b/src/openrct2/platform/Platform.Win32.cpp index 7df674aca1..4e71a8a606 100644 --- a/src/openrct2/platform/Platform.Win32.cpp +++ b/src/openrct2/platform/Platform.Win32.cpp @@ -25,6 +25,8 @@ #if !defined(__MINGW32__) && ((NTDDI_VERSION >= NTDDI_VISTA) && !defined(_USING_V110_SDK71_) && !defined(_ATL_XP_TARGETING)) #define __USE_SHGETKNOWNFOLDERPATH__ #define __USE_GETDATEFORMATEX__ +#else + #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 #endif #include "../core/Path.hpp" diff --git a/src/openrct2/thirdparty/linenoise.hpp b/src/openrct2/thirdparty/linenoise.hpp index 437105cf2e..7b16609442 100644 --- a/src/openrct2/thirdparty/linenoise.hpp +++ b/src/openrct2/thirdparty/linenoise.hpp @@ -131,7 +131,7 @@ #ifndef NOMINMAX #define NOMINMAX #endif -#include +#include #include #ifndef STDIN_FILENO #define STDIN_FILENO (_fileno(stdin)) @@ -911,7 +911,7 @@ inline BOOL ParseAndPrintANSIString(HANDLE hDev, LPCVOID lpBuffer, DWORD nNumber InterpretEscSeq(); state = 1; } - else if (Pt_len < lenof(Pt_arg) - 1) + else if (Pt_len < (int)lenof(Pt_arg) - 1) Pt_arg[Pt_len++] = *s; } else if (state == 6) @@ -1061,7 +1061,9 @@ inline int win32_write(int fd, const void *buffer, unsigned int count) { #define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100 #define LINENOISE_MAX_LINE 4096 +#ifndef _WIN32 static const char *unsupported_term[] = {"dumb","cons25","emacs",NULL}; +#endif static CompletionCallback completionCallback; #ifndef _WIN32