move fake_sclose() non-debug def to curl_mem_unset.h

This way memdebug.h isn't required to use it.
This commit is contained in:
Viktor Szakats 2025-07-06 18:58:46 +02:00
parent 79941d4657
commit 49a02992f3
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

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