From: Daniel Stenberg Date: Wed, 23 Mar 2022 22:54:18 +0000 (+0100) Subject: headers.h: make Curl_headers_push() be CURLE_OK when not built X-Git-Tag: curl-7_83_0~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2610db63e98a4f9d325cc7e97447b76d3d7bac1;p=thirdparty%2Fcurl.git headers.h: make Curl_headers_push() be CURLE_OK when not built ... to avoid errors when the function isn't there. Reported-by: Marcel Raad Fixes #8627 Closes #8628 --- diff --git a/lib/headers.h b/lib/headers.h index d6acc03c21..48c013b04d 100644 --- a/lib/headers.h +++ b/lib/headers.h @@ -46,7 +46,7 @@ CURLcode Curl_headers_push(struct Curl_easy *data, const char *header, CURLcode Curl_headers_cleanup(struct Curl_easy *data); #else -#define Curl_headers_push(x,y,z) CURLE_NOT_BUILT_IN +#define Curl_headers_push(x,y,z) CURLE_OK #define Curl_headers_cleanup(x) Curl_nop_stmt #endif