| 1 | #define _GNU_SOURCE |
| 2 | #include <fenv.h> |
| 3 | #include <internal.h> |
| 4 | |
| 5 | int __cdecl feenableexcept(int excepts) |
| 6 | { |
| 7 | if (excepts & ~FE_ALL_EXCEPT) return -1; |
| 8 | int old_excepts = fegetexcept(); |
| 9 | __mingw_controlfp(0, excepts); |
| 10 | return old_excepts; |
| 11 | } |