summaryrefslogtreecommitdiff
path: root/tests/tprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r--tests/tprintf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index 7c685264b..07f641ade 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -20,6 +20,11 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
+/* Include config.h before using ANY configure macros if needed. */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#if defined(HAVE_STDARG) && !defined(MPFR_USE_MINI_GMP)
#include <stdarg.h>