summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-28 15:35:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-28 15:35:23 +0200
commit8643bfd4fd79b610b34380b6713ce1ab5de718d2 (patch)
treebbc6477cd089826fbedf3cf4ca313f2544d13125
parenta2c85bb8e4ba9fa94b88c7592766763e30379ed2 (diff)
downloadcurl-bagder/easyoptions-debugbuild.tar.gz
easyoptions: provide debug function when DEBUGBUILDbagder/easyoptions-debugbuild
... not CURLDEBUG as they're not always set in conjunction. Fixes #5877
-rw-r--r--lib/easyoptions.c2
-rw-r--r--lib/easyoptions.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/easyoptions.c b/lib/easyoptions.c
index 586abfe52..3294c1d0b 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 4b681a47e..cd8b4100d 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