aboutsummaryrefslogtreecommitdiff
path: root/tests/server/getpart.c
diff options
context:
space:
mode:
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 */