diff options
Diffstat (limited to 'newlib/libm/machine/riscv/fegetenv.c')
-rw-r--r-- | newlib/libm/machine/riscv/fegetenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libm/machine/riscv/fegetenv.c b/newlib/libm/machine/riscv/fegetenv.c index c1488c789..10a9af337 100644 --- a/newlib/libm/machine/riscv/fegetenv.c +++ b/newlib/libm/machine/riscv/fegetenv.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 fegetenv(fenv_t *envp) { -#if __riscv_flen +#if __RISCV_HARD_FLOAT /* Get the current environment (FCSR) */ |