Fossil SCM

Fix harmless compiler warning.

mistachkin 2018-08-07 23:01 trunk
Commit 7014c2ddf1bd5c71025e8eee3b883fa76ac52f487111e2dc83bfbab3e122c74a
1 file changed +3
--- src/http_socket.c
+++ src/http_socket.c
@@ -24,10 +24,13 @@
2424
**
2525
** Low-level sockets are abstracted out into this module because they
2626
** are handled different on Unix and windows.
2727
*/
2828
#if defined(_WIN32)
29
+# if defined(_WIN32_WINNT)
30
+# undef _WIN32_WINNT
31
+# endif
2932
# define _WIN32_WINNT 0x501
3033
#endif
3134
#ifndef __EXTENSIONS__
3235
# define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */
3336
#endif
3437
--- src/http_socket.c
+++ src/http_socket.c
@@ -24,10 +24,13 @@
24 **
25 ** Low-level sockets are abstracted out into this module because they
26 ** are handled different on Unix and windows.
27 */
28 #if defined(_WIN32)
 
 
 
29 # define _WIN32_WINNT 0x501
30 #endif
31 #ifndef __EXTENSIONS__
32 # define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */
33 #endif
34
--- src/http_socket.c
+++ src/http_socket.c
@@ -24,10 +24,13 @@
24 **
25 ** Low-level sockets are abstracted out into this module because they
26 ** are handled different on Unix and windows.
27 */
28 #if defined(_WIN32)
29 # if defined(_WIN32_WINNT)
30 # undef _WIN32_WINNT
31 # endif
32 # define _WIN32_WINNT 0x501
33 #endif
34 #ifndef __EXTENSIONS__
35 # define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */
36 #endif
37

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button