aboutsummaryrefslogtreecommitdiff
path: root/math/fegetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/fegetround.c')
-rw-r--r--math/fegetround.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/fegetround.c b/math/fegetround.c
index deb3c5d..24bbd16 100644
--- a/math/fegetround.c
+++ b/math/fegetround.c
@@ -22,6 +22,10 @@
int
fegetround (void)
{
+#ifdef FE_TONEAREST
+ return FE_TONEAREST;
+#else
return 0;
+#endif
}
stub_warning (fegetround)