Commit 6ec145d4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

when built with HTTP disabled, provide a curl_formadd() function anyway to

keep the API complete at all times
parent 40a58c39
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -1458,4 +1458,14 @@ int main(int argc, char **argv)

#endif

#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 */