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.
This commit is contained in:
yamadapc 2014-08-05 15:29:28 -03:00
parent 8499c64cd1
commit 4a462627ea

View file

@ -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.