October 26, 2005
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
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);