From 822e47cdceb3fae0c1ca2857a75c112709488631 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 6 Jul 2025 18:59:32 +0200 Subject: [PATCH] memdebug.h: #undef `fclose` before defining it Just in case, and to match the pattern used for similar redefines. Cherry-picked from #17827 --- lib/memdebug.h | 1 + 1 file changed, 1 insertion(+) 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 */