summaryrefslogtreecommitdiff
path: root/tests/tset_sj.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/tset_sj.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/tset_sj.c')
-rw-r--r--tests/tset_sj.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index 86a62c49c..035a030ad 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -21,12 +21,7 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
-/* Needed due to the inclusion of mpfr-intmax.h */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "mpfr-intmax.h"
+#define MPFR_NEED_INTMAX_H
#include "mpfr-test.h"
#ifndef _MPFR_H_HAVE_INTMAX_T