summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2009-01-19 16:21:14 +0000
committerthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2009-01-19 16:21:14 +0000
commit06c4c707740400a1af7bf4ffbfdb141a91e10b9a (patch)
treeb9b3a1a4d760314b1e0fee9933ce7dc873419435
parentf9ff9170011c56af166d430e2047cf5d2e4688b8 (diff)
downloadmpfr-06c4c707740400a1af7bf4ffbfdb141a91e10b9a.tar.gz
get_uj.c get_sj.c tests/tset_sj.c tests/tfits.c fits_intmax.c fits_uintmax.c set_uj.c set_sj.c: Use the same #include order for intmax_t as in gmp.
[partial merge of r5825] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.4@5847 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--fits_intmax.c11
-rw-r--r--fits_uintmax.c11
-rw-r--r--get_sj.c11
-rw-r--r--get_uj.c11
-rw-r--r--set_sj.c11
-rw-r--r--set_uj.c11
-rw-r--r--tests/tfits.c11
-rw-r--r--tests/tset_sj.c11
8 files changed, 48 insertions, 40 deletions
diff --git a/fits_intmax.c b/fits_intmax.c
index c9af45cda..0a9154a61 100644
--- a/fits_intmax.c
+++ b/fits_intmax.c
@@ -31,11 +31,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-impl.h"
diff --git a/fits_uintmax.c b/fits_uintmax.c
index 9f37416e1..0f77a04e1 100644
--- a/fits_uintmax.c
+++ b/fits_uintmax.c
@@ -31,11 +31,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-impl.h"
diff --git a/get_sj.c b/get_sj.c
index 3beff38b1..c746fc786 100644
--- a/get_sj.c
+++ b/get_sj.c
@@ -31,11 +31,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-impl.h"
diff --git a/get_uj.c b/get_uj.c
index c9c2f2fa9..5ecda5577 100644
--- a/get_uj.c
+++ b/get_uj.c
@@ -31,11 +31,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-impl.h"
diff --git a/set_sj.c b/set_sj.c
index a553ae5b0..c24f9c78a 100644
--- a/set_sj.c
+++ b/set_sj.c
@@ -31,11 +31,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-impl.h"
diff --git a/set_uj.c b/set_uj.c
index 2585d8012..284a343e3 100644
--- a/set_uj.c
+++ b/set_uj.c
@@ -31,11 +31,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#define MPFR_NEED_LONGLONG_H
diff --git a/tests/tfits.c b/tests/tfits.c
index 110ae1b54..a7cd02508 100644
--- a/tests/tfits.c
+++ b/tests/tfits.c
@@ -37,11 +37,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-test.h"
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index 0763e79b7..935b9a727 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -36,11 +36,12 @@ MA 02110-1301, USA. */
# define __STDC_CONSTANT_MACROS
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h> /* for intmax_t */
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
#endif
#include "mpfr-test.h"