From: Viktor Szakats Date: Sun, 6 Jul 2025 16:59:32 +0000 (+0200) Subject: memdebug.h: #undef `fclose` before defining it X-Git-Tag: rc-8_15_0-3~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=822e47cdceb3fae0c1ca2857a75c112709488631;p=thirdparty%2Fcurl.git memdebug.h: #undef `fclose` before defining it Just in case, and to match the pattern used for similar redefines. Cherry-picked from #17827 --- diff --git a/lib/memdebug.h b/lib/memdebug.h index f2ebd60376..0493bf61bc 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -183,6 +183,7 @@ CURL_EXTERN ALLOC_FUNC #define fopen(file,mode) curl_dbg_fopen(file,mode,__LINE__,__FILE__) #undef fdopen #define fdopen(file,mode) curl_dbg_fdopen(file,mode,__LINE__,__FILE__) +#undef fclose #define fclose(file) curl_dbg_fclose(file,__LINE__,__FILE__) #endif /* CURLDEBUG */