diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-11-23 09:10:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-23 09:10:00 +0000 |
commit | 599d9642ca92a8f9b6feaef20844c1ef4f41dbcc (patch) | |
tree | 82f7def9e506323265848e3d5cf9b6b1302dc462 | |
parent | 0264faaa4e3679e1c38f4cbdc860b18f68f2efe7 (diff) |
Yang Tse fixed MSVC 6.0 warnings
-rw-r--r-- | lib/setup.h | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h index 5249d2e5f..ce0fc5075 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -169,8 +169,10 @@ typedef unsigned char bool; #endif #if defined(ENABLE_IPV6) || defined(USE_SSLEAY) +#if !defined(_MSC_VER) || (_MSC_VER >= 1300) #include <ws2tcpip.h> #endif +#endif #if !defined(__GNUC__) || defined(__MINGW32__) #define sclose(x) closesocket(x) diff --git a/src/main.c b/src/main.c index 568611474..ecc78001d 100644 --- a/src/main.c +++ b/src/main.c @@ -1944,7 +1944,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ nextarg, &config->httppost, &config->last_post, - subletter=='s')) /* 's' means literal string */ + (bool) (subletter=='s'))) /* 's' means literal string */ return PARAM_BAD_USE; if(SetHTTPrequest(config, HTTPREQ_POST, &config->httpreq)) return PARAM_BAD_USE; |