freebsd-ports/math/gsl/files/patch-ieee-utils__fp.c
Sean Bruno 73ee5e70c5 Fix all non-x86 builds of math/gsl with a more general approach than the
specifically powerpc patch file.

Drop patch-ieee-utils-fp-freebsd.c alltogether and change the order
of #ifdefs in the setup to pull in fp-gnuc99.c instead of fp-freebsd.cc

Verified on redports for x86 builds and am bumping port revision.

Suggested by:	nathanw
Phabric:	https://reviews.freebsd.org/D787
Reviewed by:	nathanw
Approved by:	bdrewery (mentor)
2014-09-16 19:04:09 +00:00

20 lines
531 B
C

--- ieee-utils/fp.c.orig 2014-09-16 17:19:39 UTC
+++ ieee-utils/fp.c
@@ -22,6 +22,8 @@
#include "fp-aix.c"
#elif HAVE_TRU64_IEEE_INTERFACE
#include "fp-tru64.c"
+#elif HAVE_DECL_FEENABLEEXCEPT || HAVE_DECL_FESETTRAPENABLE
+#include "fp-gnuc99.c"
#elif HAVE_FREEBSD_IEEE_INTERFACE
#include "fp-freebsd.c"
#elif HAVE_OS2EMX_IEEE_INTERFACE
@@ -43,8 +45,6 @@
# else
# include "fp-darwin86.c"
#endif
-#elif HAVE_DECL_FEENABLEEXCEPT || HAVE_DECL_FESETTRAPENABLE
-#include "fp-gnuc99.c"
#else
#include "fp-unknown.c"
#endif