diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-05 17:08:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-13 08:17:09 +0200 |
commit | b95456f4e26b602a027433f06cbff33e7afa3317 (patch) | |
tree | e7100b6f97b6196fd96ebf5ce7412908e43d7ab6 /lib/formdata.h | |
parent | 0e2208ada6e4c3edeb01ce242e3e2ca06084680b (diff) | |
download | curl-b95456f4e26b602a027433f06cbff33e7afa3317.tar.gz |
mime: acknowledge CURL_DISABLE_MIME
Diffstat (limited to 'lib/formdata.h')
-rw-r--r-- | lib/formdata.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/formdata.h b/lib/formdata.h index 1246c2bc8..cb20805f5 100644 --- a/lib/formdata.h +++ b/lib/formdata.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -22,6 +22,10 @@ * ***************************************************************************/ +#include "curl_setup.h" + +#ifndef CURL_DISABLE_MIME + /* used by FormAdd for temporary storage */ typedef struct FormInfo { char *name; @@ -47,5 +51,10 @@ CURLcode Curl_getformdata(struct Curl_easy *data, curl_mimepart *, struct curl_httppost *post, curl_read_callback fread_func); +#else +/* disabled */ +#define Curl_getformdata(a,b,c,d) CURLE_NOT_BUILT_IN +#endif + #endif /* HEADER_CURL_FORMDATA_H */ |