summaryrefslogtreecommitdiff
path: root/devel/mercator/files/patch-Merecator-iround.h
blob: 1bac80e786a9cf80da07fd2cda5cbe90e87768b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- Mercator/iround.h.orig	Tue Oct  4 01:25:06 2005
+++ Mercator/iround.h	Tue Oct  4 01:31:36 2005
@@ -9,6 +9,16 @@
 #error iround.h must be included after config.h
 #endif
 
+#if defined(__FreeBSD__)
+#include <osreldate.h>
+#if __FreeBSD_version < 500000
+extern "C" {
+extern float fabsf __P((float));
+extern float rintf __P((float));
+}
+#endif
+#endif
+
 #ifdef HAVE_LRINTF
     #define I_ROUND(x) (::lrintf(x)) 
 #elif defined(HAVE_RINTF)