summaryrefslogtreecommitdiff
path: root/printf
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-11-17 21:42:33 +0100
committerKevin Ryde <user42@zip.com.au>2001-11-17 21:42:33 +0100
commit58acea562878537f4716c3a27d56a54618cb1a64 (patch)
treeb0f5a8620349d0e23706a4bf4e994d978c499c97 /printf
parent88cee519a995e0ae3c3ea1db87961c8f5b3b9c4b (diff)
downloadgmp-58acea562878537f4716c3a27d56a54618cb1a64.tar.gz
* printf/asprntffuns.c: Include config.h before using its defines.
Diffstat (limited to 'printf')
-rw-r--r--printf/asprntffuns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/printf/asprntffuns.c b/printf/asprntffuns.c
index 02d896151..8e56ab97e 100644
--- a/printf/asprntffuns.c
+++ b/printf/asprntffuns.c
@@ -30,6 +30,8 @@ MA 02111-1307, USA. */
provided unconditionally so that the contents of libgmp don't depend on
the setting of --enable-cxx. */
+#include "config.h"
+
#if HAVE_STDARG
#include <stdarg.h>
#else
@@ -50,7 +52,7 @@ __gmp_asprintf_memory (struct gmp_asprintf_t *d, const char *str, size_t len)
GMP_ASPRINTF_T_NEED (d, len);
memcpy (d->buf + d->size, str, len);
d->size += len;
- return len;
+ return len;
}
int