diff options
Diffstat (limited to 'docs/examples/postit2.c')
-rw-r--r-- | docs/examples/postit2.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c index 9b7cda07e..a46f0a71b 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 <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, |