mirror of
https://github.com/yamadapc/d-colorize
synced 2024-11-14 21:14:00 +01:00
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:
parent
8499c64cd1
commit
4a462627ea
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue