Skip to content

windows: USE_WINSOCK to guard winsock2 code (where missing) - #20455

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:winsockc
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:winsockc

Conversation

@vszakats

@vszakats vszakats commented Jan 27, 2026 •

Copy link
Copy Markdown
Member

Replacing _WIN32.

Also:

  • tool_doswin: guard possibly non-portable socket code with
    USE_WINSOCK. The socket is cast to HANDLE and passed to
    win32 API SetStdHandle(STD_INPUT_HANDLE, ...).
  • lib/setup-win32.h: move #undefs before their #define pair.

@github-actions github-actions Bot added cmdline tool CI Continuous Integration labels Jan 27, 2026
@vszakats vszakats changed the title windows: replace _WIN32 with USE_WINSOCK for winsock2 code windows: replace _WIN32 with USE_WINSOCK to guard winsock2 code Jan 28, 2026
@vszakats vszakats changed the title windows: replace _WIN32 with USE_WINSOCK to guard winsock2 code windows: USE_WINSOCK to guard winsock2 code where missing Jan 28, 2026
@vszakats vszakats changed the title windows: USE_WINSOCK to guard winsock2 code where missing windows: USE_WINSOCK to guard winsock2 code (where missing) Jan 28, 2026
@vszakats vszakats closed this in 2f7d37f Jan 28, 2026
@vszakats
vszakats deleted the winsockc branch January 28, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration cmdline tool

Development

Successfully merging this pull request may close these issues.

1 participant