summaryrefslogtreecommitdiff
path: root/tests/tsin_cos.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-15 15:19:11 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-15 15:19:11 +0000
commit0b70dc273fcd2c8d530d6e66e175bee5b1239cc0 (patch)
treeaf8154dbfbfb3d0ac552a23644b66f0ffdf32161 /tests/tsin_cos.c
parent418c08a8c3dda5d97e5e2995e336364f99485e20 (diff)
downloadmpfr-0b70dc273fcd2c8d530d6e66e175bee5b1239cc0.tar.gz
Do not define macro names starting with "SIG" (+ uppercase letter)
as they are reserved when <signal.h> is included (ISO C, 7.31.7), which happens to be the case in tests/tests.c, which also includes tests/mpfr-test.h and src/mpfr-impl.h indirectly. * src/mpfr-impl.h, tests/mpfr-test.h: renamed macros: SIGN → VSIGN SIGN_RAND → RAND_SIGN * {src,tests}/*.{c,h}: updated the names in the use of these macros. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11476 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsin_cos.c')
-rw-r--r--tests/tsin_cos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tsin_cos.c b/tests/tsin_cos.c
index 28304336e..dc356a241 100644
--- a/tests/tsin_cos.c
+++ b/tests/tsin_cos.c
@@ -647,7 +647,7 @@ coverage_01032011 (void)
status_f = mpfr_sincos_fast (svalf, NULL, val, MPFR_RNDN);
status = mpfr_sin_cos (sval, cval, val, MPFR_RNDN);
- if (! mpfr_equal_p (svalf, sval) || SIGN (status_f) != SIGN (status))
+ if (! mpfr_equal_p (svalf, sval) || VSIGN (status_f) != VSIGN (status))
{
printf ("mpfr_sincos_fast differ from mpfr_sin_cos result:\n"
" sin fast is ");