mirror of
https://github.com/curl/curl.git
synced 2026-07-27 18:59:01 +03:00
src: namespace symbols clashing with lib
Before this patch `lib/http.h` and `src/tool_sdecls.h` both declared `HTTPREQ_*` enums. Rename `src` ones to have distinct names. They are not included in the same code for now, but this may change when bundling unit/libtests into single programs. Closes #14785
This commit is contained in:
parent
5ebc820c7d
commit
32eee8f139
4 changed files with 14 additions and 14 deletions
|
|
@ -2165,7 +2165,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
&config->mimecurrent,
|
||||
(cmd == C_FORM_STRING)?TRUE:FALSE)) /* literal string */
|
||||
err = PARAM_BAD_USE;
|
||||
else if(SetHTTPrequest(config, HTTPREQ_MIMEPOST, &config->httpreq))
|
||||
else if(SetHTTPrequest(config, TOOL_HTTPREQ_MIMEPOST, &config->httpreq))
|
||||
err = PARAM_BAD_USE;
|
||||
break;
|
||||
case C_GLOBOFF: /* --globoff */
|
||||
|
|
@ -2243,7 +2243,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
config->no_body = toggle;
|
||||
config->show_headers = toggle;
|
||||
if(SetHTTPrequest(config,
|
||||
(config->no_body)?HTTPREQ_HEAD:HTTPREQ_GET,
|
||||
(config->no_body)?TOOL_HTTPREQ_HEAD:TOOL_HTTPREQ_GET,
|
||||
&config->httpreq))
|
||||
err = PARAM_BAD_USE;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue