summaryrefslogtreecommitdiff
blob: a295b5227f0066a3db38b0d01c126f4c454815d6 (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

--- u_quartic.c
+++ u_quartic.c
@@ -21,4 +21,7 @@
  #include <math.h>
  
+ #ifndef M_PI
+ # define M_PI 3.14159265358979323846
+ #endif
  
  static int
--- w_intersect.c
+++ 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