aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-31 12:12:35 +0000
committerYang Tse <yangsita@gmail.com>2008-08-31 12:12:35 +0000
commit79ffbf7fe1af3fb3d6a4a1ad31eeaaecb1dbd8e6 (patch)
treef32c0a37b801eba76087d9899cf0885d7edaf8e4 /lib
parent4f0d286d2c24fd0104e4769f190277b39dc50474 (diff)
MSVC adjustment
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.