diff --git a/fuzz/wget_css_fuzzer.c b/fuzz/wget_css_fuzzer.c index 3b521cb5..bcdeb5e2 100644 --- a/fuzz/wget_css_fuzzer.c +++ b/fuzz/wget_css_fuzzer.c @@ -29,7 +29,10 @@ #include // close #include // longjmp, setjmp -#ifdef __cplusplus +#include "wget.h" +#undef fopen_wgetrc + +#ifdef __cplusplus extern "C" { #endif #include "html-url.h" @@ -55,7 +58,6 @@ FILE *fopen_wget(const char *pathname, const char *mode) return fopen("/dev/null", mode); } -#undef fopen_wgetrc FILE *fopen_wgetrc(const char *pathname, const char *mode) { #ifdef HAVE_FMEMOPEN diff --git a/fuzz/wget_html_fuzzer.c b/fuzz/wget_html_fuzzer.c index 1e262a16..a6c4fdc5 100644 --- a/fuzz/wget_html_fuzzer.c +++ b/fuzz/wget_html_fuzzer.c @@ -29,7 +29,10 @@ #include // close #include // longjmp, setjmp -#ifdef __cplusplus +#include "wget.h" +#undef fopen_wgetrc + +#ifdef __cplusplus extern "C" { #endif #include "utils.h" @@ -56,7 +59,6 @@ FILE *fopen_wget(const char *pathname, const char *mode) return fopen("/dev/null", mode); } -#undef fopen_wgetrc FILE *fopen_wgetrc(const char *pathname, const char *mode) { #ifdef HAVE_FMEMOPEN