aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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;