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:
Viktor Szakats 2025-09-10 12:48:06 +02:00
parent 31f0f0a060
commit 3ba74c4395
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

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