]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
remove the wrong win32 comment and use global_init
authorDaniel Stenberg <daniel@haxx.se>
Wed, 19 Nov 2003 08:19:20 +0000 (08:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Nov 2003 08:19:20 +0000 (08:19 +0000)
docs/examples/getinmemory.c

index 7d662912342e5f32508197fd3f7fb7c1003068c8..e45beb070afa9ece95303cca0f95c5abaa312a83 100644 (file)
@@ -13,9 +13,6 @@
  * This exact source code has not been verified to work.
  */
 
-/* to make this work under windows, use the win32-functions from the
-   win32socket.c file as well */
-
 #include <stdio.h>
 
 #include <curl/curl.h>
@@ -51,6 +48,8 @@ int main(int argc, char **argv)
   chunk.memory=NULL; /* we expect realloc(NULL, size) to work */
   chunk.size = 0;    /* no data at this point */
 
+  curl_global_init(CURL_GLOBAL_ALL);
+
   /* init the curl session */
   curl_handle = curl_easy_init();