From fb25d3c2a91e09c3f7259a8045659c7fbf9b577d Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sat, 28 Mar 2015 11:06:47 +0100 Subject: [PATCH] try to get it compiling on pre 2066 --- source/tinyendian.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/tinyendian.d b/source/tinyendian.d index 1f1de6e..205effa 100644 --- a/source/tinyendian.d +++ b/source/tinyendian.d @@ -13,6 +13,8 @@ import std.algorithm; import std.system; import std.utf; +static if(__VERSION__ < 2066) + private enum nogc; /// Unicode UTF encodings. enum UTFEncoding : ubyte @@ -37,7 +39,7 @@ unittest assert(floats == floatsSwapBuffer, "Lost information when swapping byte order"); } -@system pure nothrow @nogc: +@nogc @system pure nothrow: /** Swap byte order of items in an array in place. *