mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:57:17 +03:00
curl_mem_undef.h: limit to CURLDEBUG for non-memalloc overrides
To fix non-`CURLDEBUG` builds on 32-bit AIX, where `fopen` is a system
macro.
Ref: #18502
Ref: https://github.com/curl/curl/pull/18502/commits/793a375ce3002454599ffe2d7b561b6340103306
Follow-up to 3bb5e58c10 #17827
Reported-by: Andrew Kirillov
Fixes #18510
Closes #18514
This commit is contained in:
parent
31f0f0a060
commit
3ba74c4395
1 changed files with 7 additions and 3 deletions
|
|
@ -29,13 +29,15 @@
|
|||
#undef calloc
|
||||
#undef realloc
|
||||
#undef free
|
||||
#undef send
|
||||
#undef recv
|
||||
|
||||
#ifdef _WIN32
|
||||
#undef _tcsdup
|
||||
#endif
|
||||
|
||||
#ifdef CURLDEBUG
|
||||
|
||||
#undef send
|
||||
#undef recv
|
||||
|
||||
#undef socket
|
||||
#ifdef HAVE_ACCEPT4
|
||||
#undef accept4
|
||||
|
|
@ -51,5 +53,7 @@
|
|||
#undef fdopen
|
||||
#undef fclose
|
||||
|
||||
#endif /* CURLDEBUG */
|
||||
|
||||
#undef HEADER_CURL_MEMORY_H
|
||||
#undef HEADER_CURL_MEMDEBUG_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue