From 4a462627eaee9e8b3de45ee5530256d02ba88d60 Mon Sep 17 00:00:00 2001 From: yamadapc Date: Tue, 5 Aug 2014 15:29:28 -0300 Subject: [PATCH] Patch for DMD 2.065 compatibility on Windows. It seems it got `undefined identifier nogc`, when compiling with DMD 2.065 on Windows. This should patch that using a solution found here: https://github.com/DerelictOrg/DerelictUtil/blob/master/source/derelict/util/system.d#L71 This is a fix to #7. --- source/colorize/winterm.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.