Define ENABLE_VIRTUAL_TERMINAL_PROCESSING if not present

This commit is contained in:
Freddie Akeroyd
2019-06-08 20:34:39 +01:00
parent 880a399e4e
commit 3ad63e04d0

View File

@ -43,6 +43,11 @@ FILE *StreamDebugFile = NULL;
#ifdef _WIN32
#define localtime_r(timet,tm) localtime_s(tm,timet)
/* this may not be defined if using older Windows SDKs */
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
/* Enable ANSI colors in Windows console */
static int win_console_init() {
DWORD dwMode = 0;