Skip to content

Commit

Permalink
avoid error on old windows sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 13, 2023
1 parent 8a59cf0 commit d3f25c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mmc_tictoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ void sleep_ms(int milliseconds) {

#if defined(_WIN32) && defined(USE_OS_TIMER) && !defined(MCX_CONTAINER)

#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif

int EnableVTMode() {
// Set output mode to handle virtual terminal sequences
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
Expand Down

0 comments on commit d3f25c6

Please sign in to comment.