You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/xfig/files/xfig-3.2.5b-solaris.patch

27 lines
499 B

* 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