]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: introduce `CURL_ACCEPT()`
authorViktor Szakats <commit@vsz.me>
Tue, 9 Sep 2025 08:00:13 +0000 (10:00 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 9 Sep 2025 13:17:34 +0000 (15:17 +0200)
commit9863599d69b79d290928a89bf9160f4e4e023d4e
treeb4a1be6c5dbae57646131e14a87044bf68d063fc
parentf8ff233cdffde8b6c55bc991d836f52f4c1b8553
lib: introduce `CURL_ACCEPT()`

To avoid overriding the system symbol `accept`, which is a macro on some
systems (AIX), and thus can't be called via the `(function)` PP trick.

It's also problematic to reset such macro to its original value.

Follow-up to 3bb5e58c105d7be450b667858d1b8e7ae3ded555 #17827
Reported-by: Andrew Kirillov
Fixes #18500
Closes #18501
Closes #18502
lib/cf-socket.c
lib/curl_mem_undef.h
lib/curl_setup.h
lib/memdebug.c
lib/memdebug.h
lib/socketpair.c
src/tool_doswin.c