[Pixman] [PATCH] test/utils: Check for FE_INVALID definition before use

Khem Raj raj.khem at gmail.com
Wed May 18 00:32:00 UTC 2016


Some architectures e.g. nios2 do not support all exceptions

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 test/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/utils.c b/test/utils.c
index f8e42a5..fe32b1e 100644
--- a/test/utils.c
+++ b/test/utils.c
@@ -978,9 +978,11 @@ enable_invalid_exceptions (void)
 {
 #ifdef HAVE_FENV_H
 #ifdef HAVE_FEENABLEEXCEPT
+#ifdef FE_INVALID
     feenableexcept (FE_INVALID);
 #endif
 #endif
+#endif
 }
 
 void *
-- 
2.8.2



More information about the Pixman mailing list