Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Nov 28, 2024
1 parent 0f87171 commit 1832855
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/tests/misc/standalone/src/b_arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
target_arch = "x86_64"
))]
windows_targets::link!("user32.dll" "system" fn GetWindowLongPtrW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> isize);
#[cfg(target_pointer_width = "32")]
pub use GetWindowLongW as GetWindowLongPtrW;
windows_targets::link!("user32.dll" "system" fn GetWindowLongW(hwnd : HWND, nindex : WINDOW_LONG_PTR_INDEX) -> i32);
pub type WINDOW_LONG_PTR_INDEX = i32;
pub type HANDLE = *mut core::ffi::c_void;
pub type HWND = *mut core::ffi::c_void;
#[repr(C)]
#[cfg(any(
Expand Down
1 change: 1 addition & 0 deletions crates/tests/misc/standalone/src/b_nested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ pub union DEVMODEW_1 {
}
pub type HBITMAP = *mut core::ffi::c_void;
pub type HENHMETAFILE = *mut core::ffi::c_void;
pub type HGDIOBJ = *mut core::ffi::c_void;
pub type HGLOBAL = *mut core::ffi::c_void;
#[repr(C)]
#[derive(Clone, Copy)]
Expand Down
2 changes: 2 additions & 0 deletions crates/tests/misc/standalone/src/b_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ windows_targets::link!("user32.dll" "cdecl" fn wsprintfA(param0 : PSTR, param1 :
pub type WIN32_ERROR = u32;
pub type WINSOCK_SOCKET_TYPE = i32;
pub type BCRYPT_ALG_HANDLE = *mut core::ffi::c_void;
pub type BCRYPT_HANDLE = *mut core::ffi::c_void;
pub type BOOL = i32;
pub type BOOLEAN = u8;
pub type HANDLE = *mut core::ffi::c_void;
pub type HINSTANCE = *mut core::ffi::c_void;
pub type HMODULE = *mut core::ffi::c_void;
pub type SOCKET = usize;
pub type PSTR = *mut u8;
Expand Down

0 comments on commit 1832855

Please sign in to comment.