curl/tests/server
Viktor Szakats 0042770157
warnless: drop parts of the read/write preprocessor hack (Windows)
The `#undef` hack is no longer necessary after changing the redifitions
to not map back to the original symbols.

This makes it unnecessary to repeat the redefinitions after compiling
`warnless.c` itself (in unity mode).

Which in turns makes it unnecessary to include `warnless.h` again, to
trigger such redefinition.

This also means that `read`/`write` are now redefined on Windows from
the first inclusion of `warnless.h`.

Also:
- tests/server: drop a repeat `warnless.h` include, that is unnecessary
  after this patch.
- tests/unit: drop repeat `warnless.h` include.
- tests/libtest: drop repeat `warnless.h` includes.
- tests/libtest: formatting.

Follow-up to 2f312a14da #17619
Follow-up to 84338c4de2 #12331
Follow-up to 6239146e93

Closes #17673
2025-06-19 17:09:43 +02:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt lib: make CURLX_SET_BINMODE() and use it 2025-06-19 15:57:37 +02:00
dnsd.c lib: make curlx_wait_ms() and use it 2025-06-19 15:57:37 +02:00
first.c tests: tidy up server main function, whitespace and README 2025-06-15 14:11:21 +02:00
first.h tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
getpart.c tests/server: make all global vars/funcs static 2025-06-19 13:28:45 +02:00
getpart.h tests/server: make all global vars/funcs static 2025-06-19 13:28:45 +02:00
Makefile.am lib: make CURLX_SET_BINMODE() and use it 2025-06-19 15:57:37 +02:00
Makefile.inc lib: make curlx_wait_ms() and use it 2025-06-19 15:57:37 +02:00
mqttd.c lib: make CURLX_SET_BINMODE() and use it 2025-06-19 15:57:37 +02:00
resolve.c tests/server: make all global vars/funcs static 2025-06-19 13:28:45 +02:00
rtspd.c lib: make curlx_wait_ms() and use it 2025-06-19 15:57:37 +02:00
sockfilt.c warnless: drop parts of the read/write preprocessor hack (Windows) 2025-06-19 17:09:43 +02:00
socksd.c lib: make CURLX_SET_BINMODE() and use it 2025-06-19 15:57:37 +02:00
sws.c lib: make CURLX_SET_BINMODE() and use it 2025-06-19 15:57:37 +02:00
tftpd.c tftpd: use CURLMIN() macro 2025-06-19 15:57:37 +02:00
util.c lib: make curlx_wait_ms() and use it 2025-06-19 15:57:37 +02:00