aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-25 16:15:21 +0000
committerYang Tse <yangsita@gmail.com>2008-10-25 16:15:21 +0000
commit417bac4055ce215d3edb34f33f46e1dedaab48bb (patch)
tree73ffff00308d70c36938554eb70d7c57ddb8f167
parente9c94cdd49b49266fab7b46ef613ac1ace38a7d3 (diff)
add missing header inclusions
-rw-r--r--lib/hash.c7
-rw-r--r--lib/multi.c5
-rw-r--r--src/writeenv.c5
3 files changed, 13 insertions, 4 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 3fcb44e4f..f7d072482 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -28,9 +28,12 @@
#include "hash.h"
#include "llist.h"
-#include "memory.h"
-/* this must be the last include file */
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
+#include "memory.h"
+/* The last #include file should be: */
#include "memdebug.h"
static void
diff --git a/lib/multi.c b/lib/multi.c
index e503a11a2..a91c8d766 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -37,13 +37,16 @@
#include "url.h"
#include "connect.h"
#include "progress.h"
-#include "memory.h"
#include "easyif.h"
#include "multiif.h"
#include "sendf.h"
#include "timeval.h"
#include "http.h"
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
+#include "memory.h"
/* The last #include file should be: */
#include "memdebug.h"
diff --git a/src/writeenv.c b/src/writeenv.c
index 90d341356..9789e2aeb 100644
--- a/src/writeenv.c
+++ b/src/writeenv.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -32,6 +32,9 @@
#include <kernel.h>
#endif
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
static const struct
{
const char * name;