From: Daniel Stenberg Date: Wed, 9 Jun 2004 08:22:02 +0000 (+0000) Subject: when built with HTTP disabled, provide a curl_formadd() function anyway to X-Git-Tag: curl-7_12_1~303 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec145d4b451d51310f887ef01bb40b48004d131;p=thirdparty%2Fcurl.git when built with HTTP disabled, provide a curl_formadd() function anyway to keep the API complete at all times --- diff --git a/lib/formdata.c b/lib/formdata.c index 49d09786e3..36eac7e179 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -1458,4 +1458,14 @@ int main(int argc, char **argv) #endif -#endif /* CURL_DISABLE_HTTP */ +#else /* CURL_DISABLE_HTTP */ +CURLFORMcode curl_formadd(struct curl_httppost **httppost, + struct curl_httppost **last_post, + ...) +{ + (void)httppost; + (void)last_post; + return CURL_FORMADD_DISABLED; +} + +#endif /* CURL_DISABLE_HTTP */