Skip to content

Commit

Permalink
Fix build on Windows arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
wezm authored and not-fl3 committed Jul 26, 2024
1 parent b923c10 commit 8f967a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/native/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ unsafe extern "system" fn win32_wndproc(
) -> LRESULT {
let display_ptr: isize;

#[cfg(target_arch = "x86_64")]
#[cfg(target_pointer_width = "64")]
{
display_ptr = GetWindowLongPtrA(hwnd, GWLP_USERDATA)
}

#[cfg(target_arch = "i686")]
#[cfg(target_pointer_width = "32")]
{
display_ptr = GetWindowLong(hwnd, GWLP_USERDATA)
}
Expand Down

0 comments on commit 8f967a7

Please sign in to comment.