diff --git a/source/colorize/winterm.d b/source/colorize/winterm.d index cbd76d5..09d593f 100644 --- a/source/colorize/winterm.d +++ b/source/colorize/winterm.d @@ -6,11 +6,13 @@ */ module colorize.winterm; - version(Windows) { import core.sys.windows.windows; + // Patch for DMD 2.065 compatibility + static if( __VERSION__ < 2066 ) enum nogc = 1; + // This is a state machine to enable terminal colors on Windows. // Parses and interpret ANSI/VT100 Terminal Control Escape Sequences. // Only supports colour sequences, will output char incorrectly on invalid input.