mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
remove the wrong win32 comment and use global_init
This commit is contained in:
parent
e1d01045e2
commit
4d28012468
@ -13,9 +13,6 @@
|
|||||||
* This exact source code has not been verified to work.
|
* 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 <stdio.h>
|
||||||
|
|
||||||
#include <curl/curl.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.memory=NULL; /* we expect realloc(NULL, size) to work */
|
||||||
chunk.size = 0; /* no data at this point */
|
chunk.size = 0; /* no data at this point */
|
||||||
|
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
/* init the curl session */
|
/* init the curl session */
|
||||||
curl_handle = curl_easy_init();
|
curl_handle = curl_easy_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user