memdebug.h: #undef fclose before defining it

Just in case, and to match the pattern used for similar redefines.

Cherry-picked from #17827
This commit is contained in:
Viktor Szakats 2025-07-06 18:59:32 +02:00
parent ed3a482cd1
commit 822e47cdce
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View 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 */