summaryrefslogtreecommitdiff
path: root/set_uj.c
diff options
context:
space:
mode:
Diffstat (limited to 'set_uj.c')
-rw-r--r--set_uj.c11
1 files changed, 6 insertions, 5 deletions
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