Pull in <float.h> instead of declaring __flt_rounds() locally
authorguenther <guenther@openbsd.org>
Sun, 18 Oct 2015 19:30:39 +0000 (19:30 +0000)
committerguenther <guenther@openbsd.org>
Sun, 18 Oct 2015 19:30:39 +0000 (19:30 +0000)
ok miod@ jsg@

lib/libc/arch/arm/gen/flt_rounds.c

index 7effc44..820a07a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: flt_rounds.c,v 1.3 2006/02/06 17:03:17 jmc Exp $      */
+/*     $OpenBSD: flt_rounds.c,v 1.4 2015/10/18 19:30:39 guenther Exp $ */
 /*     $NetBSD: flt_rounds.c,v 1.1 2000/12/29 20:13:48 bjh21 Exp $     */
 
 /*
@@ -34,6 +34,7 @@
 
 #include <sys/types.h>
 #include <ieeefp.h>
+#include <float.h>
 
 static const int map[] = {
        1,      /* round to nearest */
@@ -68,8 +69,6 @@ static const int map[] = {
  * soft float FP libraries.
  */
 
-int __flt_rounds(void);
-
 int
 __flt_rounds()
 {