summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-05-24 23:41:28 +0100
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-18 16:07:56 +0100
commit742b1ad4b069653a99fc6bd4510f2b6abb6abf95 (patch)
tree0c36d5329724f6b4bcea68e2902b26d3ee1445ac /test
parent75f1d11d93236b19d06515b8ed2baf612b0767ab (diff)
[test] Fix checking of the fenv.h include.
This adds a configure check for fenv.h and makes invalid-matrix.c check for it with HAVE_FENV_H instead of HAVE_FEDISABLEEXCEPT -- turns out Solaris doesn't have fedisableexcept(), but it does have feclearexcept(). The same issue appears on OSX and was fixed in ab86662ab499e1f29c0f8c4248771e730c281e3f. This patch adds some configure magic.
Diffstat (limited to 'test')
-rw-r--r--test/invalid-matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/invalid-matrix.c b/test/invalid-matrix.c
index 0d7e69c5..6cfaedfe 100644
--- a/test/invalid-matrix.c
+++ b/test/invalid-matrix.c
@@ -33,8 +33,8 @@
#define INFINITY HUGE_VAL
#endif
-#if HAVE_FEDISABLEEXCEPT || HAVE_FECLEAREXCEPT
-#include <fenv.h>
+#if HAVE_FENV_H
+# include <fenv.h>
#endif
static cairo_test_status_t