move sclose/fake_sclose defs to curl_setup.h

drop the undef/refer dance, it's unnecessary.
This commit is contained in:
Viktor Szakats 2025-07-07 12:07:36 +02:00
parent 759dea96b6
commit 0cef0cb645
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 9 additions and 17 deletions

View file

@ -73,13 +73,6 @@
__LINE__, __FILE__)
#endif
/* sclose is probably already defined, redefine it! */
#undef sclose
#define sclose(sockfd) curl_dbg_sclose(sockfd,__LINE__,__FILE__)
#undef fake_sclose
#define fake_sclose(sockfd) curl_dbg_mark_sclose(sockfd,__LINE__,__FILE__)
#undef fopen
#define fopen(file,mode) curl_dbg_fopen(file,mode,__LINE__,__FILE__)
#undef fdopen