diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-17 17:30:00 -0700 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2019-12-19 23:34:38 +0000 |
commit | 364760cd3d9c62088cbe6a81d1f7704344203e40 (patch) | |
tree | 73b76abaeb2cc072294b98f2598147f728141fef | |
parent | 7331d2b4e3f0ccd7413bfb8f20a4cec3724c641f (diff) | |
download | pixman-364760cd3d9c62088cbe6a81d1f7704344203e40.tar.gz |
test/utils: Check for FE_INVALID definition before use
Some architectures e.g. nios2 do not support all exceptions.
-rw-r--r-- | test/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/utils.c b/test/utils.c index 1fafd80..cd9ab26 100644 --- a/test/utils.c +++ b/test/utils.c @@ -993,9 +993,11 @@ enable_invalid_exceptions (void) { #ifdef HAVE_FENV_H #ifdef HAVE_FEENABLEEXCEPT +#ifdef FE_INVALID feenableexcept (FE_INVALID); #endif #endif +#endif } void * |