aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/easy.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 0f6154448..d83a88511 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -205,6 +205,10 @@ static long init_flags;
#define system_strdup strdup
#endif
+#if defined(_MSC_VER) && defined(_DLL)
+# pragma warning(disable:4232) /* MSVC extension, dllimport identity */
+#endif
+
#ifndef __SYMBIAN32__
/*
* If a memory-using function (like curl_getenv) is used before
@@ -227,6 +231,10 @@ curl_strdup_callback Curl_cstrdup;
curl_calloc_callback Curl_ccalloc;
#endif
+#if defined(_MSC_VER) && defined(_DLL)
+# pragma warning(default:4232) /* MSVC extension, dllimport identity */
+#endif
+
/**
* curl_global_init() globally initializes cURL given a bitwise set of the
* different features of what to initialize.