-fixed emscripten compilation

This commit is contained in:
Mergul 2021-01-03 13:08:29 +01:00
parent 3c1c67efd0
commit 84ba5f9eb5
6 changed files with 36 additions and 71 deletions

View file

@ -77,7 +77,11 @@ version(GNU)
else
{
extern(C) int printf(scope const char* format, ...) @nogc nothrow @system;
public import std.array : staticArray;
// public import std.array : staticArray;
pragma(inline, true) T[n] staticArray(T, size_t n)(auto ref T[n] a)
{
return a;
}
}
extern(C) int rand() nothrow @nogc @trusted;