Skip to content
Snippets Groups Projects
Commit cc486585 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

cut off old crappy win32 comments and use the proper global_init instead

also removed very old "require libcurl older than blablabla"
parent 79e4aee1
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,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 <string.h>
......@@ -31,10 +28,6 @@
#include <curl/types.h>
#include <curl/easy.h>
#if LIBCURL_VERSION_NUM < 0x070900
#error "curl_formadd() is not introduced until libcurl 7.9 and later"
#endif
int main(int argc, char *argv[])
{
CURL *curl;
......@@ -45,6 +38,8 @@ int main(int argc, char *argv[])
struct curl_slist *headerlist=NULL;
char buf[] = "Expect:";
curl_global_init(CURL_GLOBAL_ALL);
/* Fill in the file upload field */
curl_formadd(&formpost,
&lastptr,
......
......@@ -8,9 +8,6 @@
* $Id$
*/
/* to make this work under windows, use the win32-functions from the
win32socket.c file as well */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
......@@ -33,6 +30,8 @@ int main(int argc, char **argv)
char *bodyfilename = "body.out";
FILE *bodyfile;
curl_global_init(CURL_GLOBAL_ALL);
/* init the curl session */
curl_handle = curl_easy_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment