Merge pull request #2 from Extrawurst/master
make downward compatible for pre-@nogc times (gdc stable compiler for example)
This commit is contained in:
commit
85ca6ae76c
|
@ -13,6 +13,8 @@ import std.algorithm;
|
||||||
import std.system;
|
import std.system;
|
||||||
import std.utf;
|
import std.utf;
|
||||||
|
|
||||||
|
static if(__VERSION__ < 2066)
|
||||||
|
private enum nogc;
|
||||||
|
|
||||||
/// Unicode UTF encodings.
|
/// Unicode UTF encodings.
|
||||||
enum UTFEncoding : ubyte
|
enum UTFEncoding : ubyte
|
||||||
|
@ -37,7 +39,7 @@ unittest
|
||||||
assert(floats == floatsSwapBuffer, "Lost information when swapping byte order");
|
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.
|
/** Swap byte order of items in an array in place.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue