diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-04-11 15:17:16 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-04-11 15:17:16 +0000 |
commit | ab95d9722285d7e41d5bf95ad5d3f334a9c63a45 (patch) | |
tree | 5dba250722d43b80bdfcd7b9d30e1b0808e7daa0 | |
parent | db94a9057eeb5919b58f96141490ceb39be0157b (diff) | |
download | mpfr-ab95d9722285d7e41d5bf95ad5d3f334a9c63a45.tar.gz |
[tests] Removed some useless #include's, in particular all the
unconditional #include <math.h> occurrences.
Note: There is an incompatibility between glibc 2.27 and the math.h
provided by ICC 15 (at least), and this solves a compilation failure
in the build of the tests.
Moreover, <math.h> is not required by freestanding implementations,
so that it may be better to avoid it if possible.
(merged changeset r12488 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12581 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/terf.c | 2 | ||||
-rw-r--r-- | tests/tpow.c | 3 | ||||
-rw-r--r-- | tests/tpow_z.c | 3 |
3 files changed, 0 insertions, 8 deletions
diff --git a/tests/terf.c b/tests/terf.c index 69ebdb089..5e95cee88 100644 --- a/tests/terf.c +++ b/tests/terf.c @@ -20,8 +20,6 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <math.h> - #include "mpfr-test.h" #define TEST_FUNCTION mpfr_erf diff --git a/tests/tpow.c b/tests/tpow.c index 64f118f48..10eddbe95 100644 --- a/tests/tpow.c +++ b/tests/tpow.c @@ -20,9 +20,6 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <float.h> -#include <math.h> - #define _MPFR_NO_DEPRECATED_ROOT #include "mpfr-test.h" diff --git a/tests/tpow_z.c b/tests/tpow_z.c index 473f56e11..2228f91a0 100644 --- a/tests/tpow_z.c +++ b/tests/tpow_z.c @@ -20,9 +20,6 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <float.h> -#include <math.h> - #include "mpfr-test.h" #define PRINT_ERROR(str) \ |