diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-08-01 09:44:46 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-08-01 09:44:46 +0000 |
commit | 647a4731497b1ddfa87aaa3714c0dbadb4152afe (patch) | |
tree | 6fb738f1eebceb1834acaef9bd45079ec0bda173 | |
parent | 9c85cccb0a734614346f3935608cd9625203eb81 (diff) | |
download | mpfr-647a4731497b1ddfa87aaa3714c0dbadb4152afe.tar.gz |
[tools/mpfrlint] Detect "mpfr-impl.h" inclusion by the test programs:
"mpfr-test.h" should be included instead; otherwise __MPFR_WITHIN_MPFR
will be defined, yielding failures under MS Windows with DLL.
(Similar to r11603 in the trunk.)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11605 280ebfd0-de03-0410-8827-d642c229c3f4
-rwxr-xr-x | tools/mpfrlint | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/mpfrlint b/tools/mpfrlint index 757d4e175..b6a6f898b 100755 --- a/tools/mpfrlint +++ b/tools/mpfrlint @@ -74,6 +74,11 @@ do echo "Missing '#include \"mpfr-impl.h\"' in $file?" done +# "mpfr-impl.h" must not be included directly by the test programs. +# Otherwise __MPFR_WITHIN_MPFR will be defined, yielding failures +# under MS Windows with DLL. +grep --exclude=mpfr-test.h '^ *# *include *"mpfr-impl.h"' tests/*.{c,h} + # mpfr_printf-like functions shouldn't be used in the tests, # as they need <stdarg.h> (HAVE_STDARG defined). for file in tests/*.c |