]> git.ipfire.org Git - thirdparty/curl.git/commit
warnless: replace `read()`/`write()` wrapper functions with macros (Windows)
authorViktor Szakats <commit@vsz.me>
Sat, 14 Jun 2025 10:43:20 +0000 (12:43 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 15 Jun 2025 00:02:28 +0000 (02:02 +0200)
commit2f312a14da94068d58b6a39f79f82acd0bf82149
tree027cde6363f85998b901f589d5da9bf9b4f23fa1
parent924c7e15dce54cfe70920e4a3bad4886835f1c4e
warnless: replace `read()`/`write()` wrapper functions with macros (Windows)

Map them to `_read()`/`_write()` (with underscore) to avoid recursive
mapping and to use the non-compatibility naming on Windows.

https://learn.microsoft.com/cpp/c-runtime-library/reference/read
https://learn.microsoft.com/cpp/c-runtime-library/reference/write

Follow-up to 6239146e931fd3127f6994975a56d1b4884a708a

Closes #17619
lib/curlx/warnless.c
lib/curlx/warnless.h