mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:57:17 +03:00
mime: acknowledge CURL_DISABLE_MIME
This commit is contained in:
parent
0e2208ada6
commit
b95456f4e2
5 changed files with 42 additions and 79 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue