From 2f457a1dbe099c5b79be87e27a32a233a8825243 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 23 Sep 2024 21:32:32 -0400 Subject: [PATCH] hacks to make it build on Windows --- pixmappaint.d | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pixmappaint.d b/pixmappaint.d index 461d074..9440603 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -19,7 +19,15 @@ module arsd.pixmappaint; import arsd.color; import arsd.core; -import std.math : round; + +private float hackyRound(float f) { + 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: