aboutsummaryrefslogtreecommitdiff
path: root/stdlib/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/strtod.c')
-rw-r--r--stdlib/strtod.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
index ef74b3d9f5..820307a0ec 100644
--- a/stdlib/strtod.c
+++ b/stdlib/strtod.c
@@ -64,9 +64,11 @@
/* The gmp headers need some configuration frobs. */
#define HAVE_ALLOCA 1
+/* Include gmp-mparam.h first, such that definitions of _SHORT_LIMB
+ and _LONG_LONG_LIMB in it can take effect into gmp.h. */
+#include <gmp-mparam.h>
#include <gmp.h>
#include <gmp-impl.h>
-#include <gmp-mparam.h>
#include <longlong.h>
#include "fpioconst.h"