diff options
Diffstat (limited to 'newlib/libm/machine/riscv/fetestexcept.c')
-rw-r--r-- | newlib/libm/machine/riscv/fetestexcept.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libm/machine/riscv/fetestexcept.c b/newlib/libm/machine/riscv/fetestexcept.c index 55d880c99..8ed0d5ffa 100644 --- a/newlib/libm/machine/riscv/fetestexcept.c +++ b/newlib/libm/machine/riscv/fetestexcept.c @@ -32,6 +32,7 @@ */ #include <fenv.h> +#include "riscv_math.h" /* This implementation is intended to comply with the following * specification: @@ -47,7 +48,7 @@ int fetestexcept(int excepts) { -#if __riscv_flen +#ifdef __RISCV_HARD_FLOAT /* Mask excepts to be sure only supported flag bits are set */ |