aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-09 08:22:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-09 08:22:02 +0000
commit6ec145d4b451d51310f887ef01bb40b48004d131 (patch)
treea5fda364f4cc4e1409998386df3f5ea276bd9e97
parent40a58c392ff7b70ed882d238b494ee43f5fe6577 (diff)
when built with HTTP disabled, provide a curl_formadd() function anyway to
keep the API complete at all times
-rw-r--r--lib/formdata.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 49d09786e..36eac7e17 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 */