curl/docs/libcurl
Viktor Szakats e9a7d4a1c8
windows: use built-in _WIN32 macro to detect Windows
Windows compilers define `_WIN32` automatically. Windows SDK headers
or build env defines `WIN32`, or we have to take care of it. The
agreement seems to be that `_WIN32` is the preferred practice here.
Make the source code rely on that to detect we're building for Windows.

Public `curl.h` was using `WIN32`, `__WIN32__` and `CURL_WIN32` for
Windows detection, next to the official `_WIN32`. After this patch it
only uses `_WIN32` for this. Also, make it stop defining `CURL_WIN32`.

There is a slight chance these break compatibility with Windows
compilers that fail to define `_WIN32`. I'm not aware of any obsolete
or modern compiler affected, but in case there is one, one possible
solution is to define this macro manually.

grepping for `WIN32` remains useful to discover Windows-specific code.

Also:

- extend `checksrc` to ensure we're not using `WIN32` anymore.

- apply minor formatting here and there.

- delete unnecessary checks for `!MSDOS` when `_WIN32` is present.

Co-authored-by: Jay Satiro
Reviewed-by: Daniel Stenberg

Closes #12376
2023-11-22 15:42:25 +00:00
..
opts CURLMOPT_MAX_CONCURRENT_STREAMS: make sure the set value is within range 2023-11-22 15:01:04 +01:00
.gitignore
ABI.md
CMakeLists.txt
curl_easy_cleanup.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_duphandle.3 curl_easy_duphandle.3: clarify how HSTS and alt-svc are duped 2023-11-13 15:36:27 +01:00
curl_easy_escape.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_getinfo.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_easy_header.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_init.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_nextheader.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_option_by_id.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_option_by_name.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_option_next.3 docs: fix function typo in curl_easy_option_next.3 2023-10-20 22:57:47 +02:00
curl_easy_pause.3 docs: remove bold from some man page SYNOPSIS sections 2023-11-04 12:29:41 +01:00
curl_easy_perform.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_easy_recv.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_reset.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_send.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_setopt.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_strerror.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_unescape.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_easy_upkeep.3
curl_escape.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_formadd.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_formfree.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_formget.3 docs: remove bold from some man page SYNOPSIS sections 2023-11-04 12:29:41 +01:00
curl_free.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_getdate.3 docs/libcurl: fix three minor man page format mistakes 2023-10-14 23:19:53 -04:00
curl_getenv.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_global_cleanup.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_global_init_mem.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_global_init.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_global_sslset.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_global_trace.3 docs/libcurl: fix three minor man page format mistakes 2023-10-14 23:19:53 -04:00
curl_mime_addpart.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_data_cb.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_data.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_encoder.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_mime_filedata.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_filename.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_free.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_headers.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_init.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_name.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mime_subparts.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_mime_type.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_mprintf.3
curl_multi_add_handle.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_assign.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_cleanup.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_fdset.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_get_handles.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_info_read.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_init.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_perform.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_poll.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_remove_handle.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_setopt.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_socket_action.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_socket_all.3
curl_multi_socket.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_strerror.3 docs: remove bold from some man page SYNOPSIS sections 2023-11-04 12:29:41 +01:00
curl_multi_timeout.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_multi_wait.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_multi_wakeup.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_pushheader_byname.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_pushheader_bynum.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_share_cleanup.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_share_init.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_share_setopt.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_share_strerror.3 docs: remove bold from some man page SYNOPSIS sections 2023-11-04 12:29:41 +01:00
curl_slist_append.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_slist_free_all.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_strequal.3
curl_strnequal.3
curl_unescape.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_url_cleanup.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_url_dup.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_url_get.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_url_set.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_url_strerror.3 docs: remove bold from some man page SYNOPSIS sections 2023-11-04 12:29:41 +01:00
curl_url.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_version_info.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
curl_version.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_ws_meta.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_ws_recv.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
curl_ws_send.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
libcurl-easy.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
libcurl-env-dbg.3 libcurl-env-dbg.3: move debug variables from libcurl-env.3 2023-10-10 15:37:16 -04:00
libcurl-env.3 libcurl-env-dbg.3: move debug variables from libcurl-env.3 2023-10-10 15:37:16 -04:00
libcurl-errors.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
libcurl-multi.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
libcurl-security.3
libcurl-share.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
libcurl-thread.3 libcurl-thread.3: simplify the TLS section 2023-10-31 14:27:25 +01:00
libcurl-tutorial.3 docs: update curl man page references 2023-09-28 22:57:24 +02:00
libcurl-url.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
libcurl-ws.3 docs: adapt SEE ALSO sections to new requirements 2023-09-27 10:40:32 +02:00
libcurl.3 docs/libcurl: fix three minor man page format mistakes 2023-10-14 23:19:53 -04:00
libcurl.m4 docs: remove use of the word 'very' 2023-09-07 22:52:07 +02:00
Makefile.am
Makefile.inc libcurl-env-dbg.3: move debug variables from libcurl-env.3 2023-10-10 15:37:16 -04:00
mksymbolsmanpage.pl docs: use SOURCE_DATE_EPOCH for generated manpages 2023-10-12 09:45:41 +02:00
symbols-in-versions windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
symbols.pl docs: remove use of the word 'very' 2023-09-07 22:52:07 +02:00