From 49a02992f301cdb4bd01ce174a4cdb76a7878198 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 6 Jul 2025 18:58:46 +0200 Subject: [PATCH] move fake_sclose() non-debug def to curl_mem_unset.h This way memdebug.h isn't required to use it. --- lib/curl_mem_undef.h | 3 +++ lib/memdebug.h | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/curl_mem_undef.h b/lib/curl_mem_undef.h index 4a9a03e248..00f0c6a564 100644 --- a/lib/curl_mem_undef.h +++ b/lib/curl_mem_undef.h @@ -55,5 +55,8 @@ #undef fdopen #undef fclose +#undef fake_sclose +#define fake_sclose(x) Curl_nop_stmt + #undef HEADER_CURL_MEMORY_H #undef HEADER_CURL_MEMDEBUG_H diff --git a/lib/memdebug.h b/lib/memdebug.h index 6f8052844f..6bb0d98a6c 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -89,10 +89,5 @@ #undef fclose #define fclose(file) curl_dbg_fclose(file,__LINE__,__FILE__) -#else - -#undef fake_sclose -#define fake_sclose(x) Curl_nop_stmt - #endif /* CURLDEBUG */ #endif /* HEADER_CURL_MEMDEBUG_H */