--- a/src/float_cast.h	2011-01-19 05:39:36.000000000 -0500
+++ b/src/float_cast.h	2016-05-30 17:09:20.000000000 -0400
@@ -230,38 +230,12 @@
 	#undef lrint
 	#undef lrintf

-	#define lrint	double2int
-	#define lrintf	float2int
+	#warning "Don't have the functions lrint() and lrintf()."
+	#warning "Replacing these functions with a standard C cast."

-	inline static long
-	float2int (register float in)
-	{	int res [2] ;
-
-		__asm__ __volatile__
-		(	"fctiw	%1, %1\n\t"
-			"stfd	%1, %0"
-			: "=m" (res)	/* Output */
-			: "f" (in)		/* Input */
-			: "memory"
-			) ;
-
-		return res [1] ;
-	} /* lrintf */
-
-	inline static long
-	double2int (register double in)
-	{	int res [2] ;
-
-		__asm__ __volatile__
-		(	"fctiw	%1, %1\n\t"
-			"stfd	%1, %0"
-			: "=m" (res)	/* Output */
-			: "f" (in)		/* Input */
-			: "memory"
-			) ;
+	#define	lrint(dbl)		((long) (dbl))
+	#define	lrintf(flt)		((long) (flt))

-		return res [1] ;
-	} /* lrint */

 #else
 	#ifndef __sgi
@@ -278,4 +252,3 @@


 #endif /* FLOAT_CAST_HEADER */
-
