Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete redundant HAVE_WINSOCK2_H #911

Merged
merged 1 commit into from
Apr 1, 2023

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 1, 2023

libssh2.h required winsock2.h for _WIN32 since 81d53de (2011-06-04).

Apply that to the whole codebase. This makes it unnecessary to detect HAVE_WINSOCK2_H and allows to drop all its uses.

Completes TODO from b66d731

TODO: Straighten out the use a mixture of HAVE_WINDOWS_H, WIN32, _WIN32 to detect Windows.

`libssh2.h` required `winsock2.h` for `_WIN32` since
81d53de (2011-06-04).

Apply that to the whole codebase. This makes it unnecessary to detect
`HAVE_WINSOCK2_H` and allows to drop all its uses.

Completes TODO from b66d731

TODO: Straighten out the use a mixture of `HAVE_WINDOWS_H`,
      `WIN32`, `_WIN32` to detect Windows.
@vszakats vszakats merged commit eb23632 into libssh2:master Apr 1, 2023
@vszakats vszakats deleted the del-have-winsock branch April 1, 2023 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant