summaryrefslogtreecommitdiff
path: root/tests/server/getpart.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-23 14:07:28 +0000
committerYang Tse <yangsita@gmail.com>2008-10-23 14:07:28 +0000
commit4d10c96aa62c8686fca53f1b412a5c00e0687d31 (patch)
treeb1594bf15e53a237736e529bd4dfa3767d3fc853 /tests/server/getpart.c
parentb701ea36a723b2d7700e23ae53e2c3145dfe7bda (diff)
downloadcurl-4d10c96aa62c8686fca53f1b412a5c00e0687d31.tar.gz
fix compiler warning
Diffstat (limited to 'tests/server/getpart.c')
-rw-r--r--tests/server/getpart.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/server/getpart.c b/tests/server/getpart.c
index 1a2a3ca12..448cdc143 100644
--- a/tests/server/getpart.c
+++ b/tests/server/getpart.c
@@ -34,6 +34,7 @@ struct SessionHandle {
};
#include "curl_base64.h"
+#include "memory.h"
/* include memdebug.h last */
#include "memdebug.h"
@@ -48,12 +49,20 @@ struct SessionHandle {
#define show(x)
#endif
+#if defined(_MSC_VER) && defined(_DLL)
+# pragma warning(disable:4232) /* MSVC extension, dllimport identity */
+#endif
+
curl_malloc_callback Curl_cmalloc = (curl_malloc_callback)malloc;
curl_free_callback Curl_cfree = (curl_free_callback)free;
curl_realloc_callback Curl_crealloc = (curl_realloc_callback)realloc;
curl_strdup_callback Curl_cstrdup = (curl_strdup_callback)strdup;
curl_calloc_callback Curl_ccalloc = (curl_calloc_callback)calloc;
+#if defined(_MSC_VER) && defined(_DLL)
+# pragma warning(default:4232) /* MSVC extension, dllimport identity */
+#endif
+
static
char *appendstring(char *string, /* original string */
char *buffer, /* to append */