summaryrefslogtreecommitdiff
path: root/devel/mico/files/patch-include::mico::os-math.h
blob: 0314a1abaf657f916e2c62dd15063fa3ed42043f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- include/mico/os-math.h.orig	Mon Oct 13 13:49:32 2003
+++ include/mico/os-math.h	Sun May  8 11:40:37 2005
@@ -284,12 +284,26 @@
     : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \
     : __fpclassifyl(x))
 #endif
-#ifndef isinf
+#ifndef HAVE_ISINF
 #define	isinf(x)	(fpclassify(x) == FP_INFINITE)
 #endif
-#ifndef isnan
+#ifndef HAVE_ISNAN
 #define	isnan(x)	(fpclassify(x) == FP_NAN)
 #endif
+#endif
+
+// configure wrong set HAVE_*
+#define asinl asin
+#define fmodl fmod
+
+#if __FreeBSD_version < 600026
+#define ldexpl ldexp
+#define frexpl frexp
+#endif
+
+#if __FreeBSD_version < 503105
+#define ceill ceil
+#define floorl floor
 #endif
 #endif // __FreeBSD__