summaryrefslogtreecommitdiff
path: root/lib/cookie.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-03 16:06:10 +0200
committerYang Tse <yangsita@gmail.com>2011-09-03 16:07:09 +0200
commit6b75d2c2df7209919a70a29a4479625b62fb3c28 (patch)
treea5b2bd4195db4cb69f3299814e910bd04ebb6eac /lib/cookie.h
parent2be65bb0c5317b6821882b41558bd8cd2eb64d25 (diff)
downloadcurl-6b75d2c2df7209919a70a29a4479625b62fb3c28.tar.gz
fix a bunch of MSVC compiler warnings
Diffstat (limited to 'lib/cookie.h')
-rw-r--r--lib/cookie.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/cookie.h b/lib/cookie.h
index c9d397934..5997e4680 100644
--- a/lib/cookie.h
+++ b/lib/cookie.h
@@ -21,6 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
+#include "setup.h"
#include <curl/curl.h>
@@ -86,10 +87,10 @@ void Curl_cookie_clearsess(struct CookieInfo *cookies);
#if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_COOKIES)
#define Curl_cookie_list(x) NULL
-#define Curl_cookie_loadfiles(x) do { } while (0)
+#define Curl_cookie_loadfiles(x) Curl_nop_stmt
#define Curl_cookie_init(x,y,z,w) NULL
-#define Curl_cookie_cleanup(x) do { } while (0)
-#define Curl_flush_cookies(x,y)
+#define Curl_cookie_cleanup(x) Curl_nop_stmt
+#define Curl_flush_cookies(x,y) Curl_nop_stmt
#else
void Curl_flush_cookies(struct SessionHandle *data, int cleanup);
void Curl_cookie_cleanup(struct CookieInfo *);