diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-11-19 08:19:20 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-11-19 08:19:20 +0000 |
commit | 4d280124683a7d57cacb14729f964aec21eba7d7 (patch) | |
tree | 7530fb470122323c71a1341189c672af23a04430 /docs | |
parent | e1d01045e2cc9cf2934f8892d3d6bfcf80dd508e (diff) |
remove the wrong win32 comment and use global_init
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/getinmemory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index 7d6629123..e45beb070 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -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(); |