hacks to make it build on Windows

This commit is contained in:
Adam D. Ruppe 2024-09-23 21:32:32 -04:00
parent 6c8d967086
commit 2f457a1dbe
1 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,15 @@ module arsd.pixmappaint;
import arsd.color; import arsd.color;
import arsd.core; import arsd.core;
private float hackyRound(float f) {
import std.math : round; import std.math : round;
return round(f);
}
float round(float f) pure @nogc nothrow @trusted {
return (cast(float function(float) pure @nogc nothrow) &hackyRound)(f);
}
/* /*
## TODO: ## TODO: