mirror of
https://github.com/curl/curl.git
synced 2026-06-18 02:05:37 +03:00
when built with HTTP disabled, provide a curl_formadd() function anyway to
keep the API complete at all times
This commit is contained in:
parent
40a58c392f
commit
6ec145d4b4
1 changed files with 11 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue