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