October 26, 2005 Missing std.math.rint() | ||||
---|---|---|---|---|
| ||||
I have encountered a single problem when trying to compile my D program with GDC: std.math.rint() is missing. What should I do with it? |
October 26, 2005 Re: Missing std.math.rint() | ||||
---|---|---|---|---|
| ||||
Posted in reply to Piotr Fusik | Piotr Fusik wrote:
> I have encountered a single problem when trying to compile
> my D program with GDC: std.math.rint() is missing.
> What should I do with it?
>
>
Make the following change to std/math.d.
--- math.d.orig Fri Jun 10 03:56:15 2005
+++ math.d Wed Oct 26 12:20:29 2005
@@ -26,6 +26,8 @@
alias gcc.config.fabsl fabs;
alias gcc.config.cosl cos;
alias gcc.config.sinl sin;
+ alias gcc.config.rintl rint;
float sqrt(float x) {
return gcc.config.sqrtf(x);
|
Copyright © 1999-2021 by the D Language Foundation