diff options
Diffstat (limited to 'winsup/mingw/mingwex/feclearexcept.c')
-rw-r--r-- | winsup/mingw/mingwex/feclearexcept.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/mingw/mingwex/feclearexcept.c b/winsup/mingw/mingwex/feclearexcept.c index 127efb999..8c943893b 100644 --- a/winsup/mingw/mingwex/feclearexcept.c +++ b/winsup/mingw/mingwex/feclearexcept.c @@ -4,10 +4,12 @@ The feclearexcept function clears the supported exceptions represented by its argument. */ -void feclearexcept (int excepts) +int feclearexcept (int excepts) { fenv_t _env; __asm__ volatile ("fnstenv %0;" : "=m" (_env)); /* get the env */ _env.__status_word &= ~(excepts & FE_ALL_EXCEPT); /* clear the except */ __asm__ volatile ("fldenv %0;" :: "m" (_env)); /*set the env */ + + return 0; } |