aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-04-11 05:42:38 +0000
committerAndreas Jaeger <aj@suse.de>2001-04-11 05:42:38 +0000
commitefff4ab3c1c4e438fa14a92a44ea7a5782f3b29b (patch)
tree18d5e0d580907c66a8a54d821888f8ed118650f8 /math
parentb982085b4d1b5611521ffdf3f331ad0a2d4161a0 (diff)
downloadglibc-efff4ab3c1c4e438fa14a92a44ea7a5782f3b29b.tar
glibc-efff4ab3c1c4e438fa14a92a44ea7a5782f3b29b.tar.gz
glibc-efff4ab3c1c4e438fa14a92a44ea7a5782f3b29b.tar.bz2
glibc-efff4ab3c1c4e438fa14a92a44ea7a5782f3b29b.zip
(initial_tests): Protect FE_TONEAREST declaration.
Diffstat (limited to 'math')
-rw-r--r--math/test-fenv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/math/test-fenv.c b/math/test-fenv.c
index 520a7a182f..2b0ec6aeda 100644
--- a/math/test-fenv.c
+++ b/math/test-fenv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de> and
Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -640,8 +640,10 @@ initial_tests (void)
{
test_exceptions ("Initially all exceptions should be cleared",
NO_EXC, 0);
+#ifdef FE_TONEAREST
test_rounding ("Rounding direction should be initalized to nearest",
FE_TONEAREST);
+#endif
}
int