]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
memdebug.h: #undef `fclose` before defining it
authorViktor Szakats <commit@vsz.me>
Sun, 6 Jul 2025 16:59:32 +0000 (18:59 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 6 Jul 2025 17:58:04 +0000 (19:58 +0200)
Just in case, and to match the pattern used for similar redefines.

Cherry-picked from #17827

lib/memdebug.h

index f2ebd60376fda6a91b6ef5b9243808974d0f2d96..0493bf61bc85a77f2e1d0a2078378e9b06930cbf 100644 (file)
@@ -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 */