diff options
Diffstat (limited to 'math/fesetround.c')
-rw-r--r-- | math/fesetround.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/fesetround.c b/math/fesetround.c index 0e06217..1895a20 100644 --- a/math/fesetround.c +++ b/math/fesetround.c @@ -22,7 +22,11 @@ int fesetround (int round) { +#ifdef FE_TONEAREST + return (round == FE_TONEAREST) ? 0 : 1; +#else return 1; /* Signal we are unable to set the direction. */ +#endif } libm_hidden_def (fesetround) stub_warning (fesetround) |