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

Provide 32-bit aliases for SetWindowLongPtrA and GetWindowLongPtrA #1932

Merged
merged 5 commits into from Jul 25, 2022

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Jul 21, 2022

I was hoping for a more generalized solution, but this will suffice until I think of something better. As long as there aren't any more of these.

Fixes #1493

Copy link
Contributor

@tim-weis tim-weis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall and works for windows as well as windows-sys without code duplication. 🎉

crates/libs/bindgen/src/lib.rs Show resolved Hide resolved
crates/tests/window_long/tests/sys.rs Show resolved Hide resolved
crates/tests/window_long/tests/win.rs Show resolved Hide resolved
@kennykerr
Copy link
Collaborator Author

Added both A and W variants as well as tests for both.

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.

Feature request: Provide bitness-independent mappings where available
3 participants