summaryrefslogtreecommitdiff
path: root/tests/tprintf.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-06-01 10:39:52 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-06-01 10:39:52 +0000
commitdce6158229d1a0b144d527403d01d189554c0092 (patch)
tree11b4f8f1b3b8e4c8cd5c4dbc88c5f23af7471531 /tests/tprintf.c
parent923d451d79787b127b1a38da91dccc1a50ad6a45 (diff)
downloadmpfr-dce6158229d1a0b144d527403d01d189554c0092.tar.gz
Bug fixes and cleanup related to "src/mpfr-intmax.h" by introducing
a new macro MPFR_NEED_INTMAX_H, which should be defined instead of using: #include "mpfr-intmax.h" Details on the bugs fixed: * The code added in r13916 forgot a #include <limits.h> since this code does a test on ULLONG_MAX. With the cleanup, <limits.h> is already always included by mpfr-impl.h (early enough). * In src/get_str.c and tests/memory.c, a #include "config.h" was missing before #include "mpfr-intmax.h"; this issue would affect platforms where "config.h" is needed and where <inttypes.h> or <stdint.h> does not exist or does not work. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13923 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r--tests/tprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index cf96258c1..4ea0ef620 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -41,7 +41,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include <locale.h>
#endif
-#include "mpfr-intmax.h"
+#define MPFR_NEED_INTMAX_H
#include "mpfr-test.h"
#define STDOUT_FILENO 1