blob: 2e93a7faac266a7f7458459c9fc58cf2adb7cf69 (
plain)
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
|
* workaround some missing things on Solaris
--- a/u_quartic.c
+++ b/u_quartic.c
@@ -21,4 +21,7 @@
#include <math.h>
+ #ifndef M_PI
+ # define M_PI 3.14159265358979323846
+ #endif
static int
--- a/w_intersect.c
+++ b/w_intersect.c
@@ -31,6 +31,11 @@
#define ISET_P1 (1 << 0)
#define ISET_P2 (1 << 1)
+#if defined (__SVR4) && defined (__sun)
+#undef _Complex_I
+#define _Complex_I (__extension__ 1.0fi)
+#endif
+
intersect_state_e intersect_state = INTERSECT_INITIAL;
static INLINE Boolean
|