winapi-rs icon indicating copy to clipboard operation
winapi-rs copied to clipboard

Let `#define`d functions on 32-bit have same signatures as on 64-bit.

Open IslandUsurper opened this issue 6 years ago • 4 comments

Because Rust treats isize and i32 as different types even when they are the same size, aliasing SetWindowLongPtrW to SetWindowLongW doesn't work without a cast. So, let's do the cast in winapi on x86.

IslandUsurper avatar Jan 28 '19 18:01 IslandUsurper

This is a breaking change that will have to be postponed until the next major version.

retep998 avatar Jan 28 '19 19:01 retep998

@retep998, should I redo this PR against master, then?

IslandUsurper avatar Jan 28 '19 19:01 IslandUsurper

No, because that is not what master is for (and also I can change what branch a PR is against anyway, no need to recreate PRs).

retep998 avatar Jan 28 '19 19:01 retep998

This branch has conflicts that must be resolved

micwoj92 avatar Jul 20 '22 11:07 micwoj92