From 79ffbf7fe1af3fb3d6a4a1ad31eeaaecb1dbd8e6 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 31 Aug 2008 12:12:35 +0000 Subject: MSVC adjustment --- lib/easy.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/easy.c') 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. -- cgit v1.2.3