From: Daniel Stenberg Date: Fri, 28 Aug 2020 13:35:23 +0000 (+0200) Subject: easyoptions: provide debug function when DEBUGBUILD X-Git-Tag: curl-7_73_0~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e18568ba38;p=thirdparty%2Fcurl.git easyoptions: provide debug function when DEBUGBUILD ... not CURLDEBUG as they're not always set in conjunction. Follow-up to 6ebe63fac23f38df Fixes #5877 Closes #5878 --- diff --git a/lib/easyoptions.c b/lib/easyoptions.c index 586abfe52f..3294c1d0be 100644 --- a/lib/easyoptions.c +++ b/lib/easyoptions.c @@ -334,7 +334,7 @@ struct curl_easyoption Curl_easyopts[] = { {NULL, 0, 0, 0} /* end of table */ }; -#ifdef CURLDEBUG +#ifdef DEBUGBUILD /* * Curl_easyopts_check() is a debug-only function that returns non-zero * if this source file is not in sync with the options listed in curl/curl.h diff --git a/lib/easyoptions.h b/lib/easyoptions.h index 4b681a47ea..cd8b4100dc 100644 --- a/lib/easyoptions.h +++ b/lib/easyoptions.h @@ -29,7 +29,7 @@ /* generated table with all easy options */ extern struct curl_easyoption Curl_easyopts[]; -#ifdef CURLDEBUG +#ifdef DEBUGBUILD int Curl_easyopts_check(void); #endif #endif