diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c index 9b7cda07ec847fe675839880effb27883a82e366..a46f0a71bae98a3dd246e59cf2fad5100d506801 100644 --- a/docs/examples/postit2.c +++ b/docs/examples/postit2.c @@ -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 #include @@ -31,10 +28,6 @@ #include #include -#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, diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c index 7168f80166da7974a90a657c1faf44544c6beecf..6e87351688ee59e80608368fd601bd0f4a983f13 100644 --- a/docs/examples/sepheaders.c +++ b/docs/examples/sepheaders.c @@ -8,9 +8,6 @@ * $Id$ */ -/* to make this work under windows, use the win32-functions from the - win32socket.c file as well */ - #include #include #include @@ -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();