summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-06-29 11:33:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-06-29 11:33:00 +0000
commit9646a8b346b989397c1bc750aebbe52507c89c45 (patch)
tree9284b7a5f9e892ec8f2c3d01a74db77f51e70df5 /docs/examples
parent5e2a74fcc45b77111f45d789604b84356749fdc6 (diff)
downloadcurl-9646a8b346b989397c1bc750aebbe52507c89c45.tar.gz
removed static, removed curl special return type, added include windows.h
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/win32sockets.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/examples/win32sockets.c b/docs/examples/win32sockets.c
index 8dba979d3..59b31a44d 100644
--- a/docs/examples/win32sockets.c
+++ b/docs/examples/win32sockets.c
@@ -1,14 +1,17 @@
+
/*
* These are example functions doing socket init that Windows
* require. If you don't use windows, you can safely ignore this crap.
*/
-static void win32_cleanup(void)
+#include <windows.h>
+
+void win32_cleanup(void)
{
WSACleanup();
}
-static CURLcode win32_init(void)
+int win32_init(void)
{
WORD wVersionRequested;
WSADATA wsaData;