Skip to content

Commit 57345c8

Browse files
sdroegebilelmoussaoui
authored andcommitted
gdk4-win32: Fix docs build on Linux
1 parent 099542d commit 57345c8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

gdk4-win32/src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ pub use win32_display::Win32DisplayFilterHandle;
2929
mod win32_hcursor;
3030
mod win32_surface;
3131

32-
#[cfg(not(feature = "win32"))]
32+
#[cfg(not(all(feature = "win32", windows)))]
3333
pub struct HANDLE(pub isize);
34-
#[cfg(not(feature = "win32"))]
34+
#[cfg(not(all(feature = "win32", windows)))]
3535
pub struct HCURSOR(pub isize);
36-
#[cfg(not(feature = "win32"))]
36+
#[cfg(not(all(feature = "win32", windows)))]
3737
pub struct HICON(pub isize);
38-
#[cfg(not(feature = "win32"))]
38+
#[cfg(not(all(feature = "win32", windows)))]
3939
pub struct HWND(pub isize);
4040

41-
#[cfg(not(feature = "win32"))]
41+
#[cfg(not(all(feature = "win32", windows)))]
4242
#[repr(transparent)]
4343
pub struct WPARAM(pub usize);
44-
#[cfg(not(feature = "win32"))]
44+
#[cfg(not(all(feature = "win32", windows)))]
4545
#[repr(transparent)]
4646
pub struct LPARAM(pub isize);
4747

48-
#[cfg(not(feature = "win32"))]
48+
#[cfg(not(all(feature = "win32", windows)))]
4949
#[repr(C)]
5050
pub struct POINT {
5151
pub x: i32,
5252
pub y: i32,
5353
}
5454

5555
#[allow(non_snake_case)]
56-
#[cfg(not(feature = "win32"))]
56+
#[cfg(not(all(feature = "win32", windows)))]
5757
#[repr(C)]
5858
pub struct MSG {
5959
pub hwnd: HWND,
@@ -64,7 +64,7 @@ pub struct MSG {
6464
pub pt: POINT,
6565
}
6666

67-
#[cfg(feature = "win32")]
67+
#[cfg(all(feature = "win32", windows))]
6868
pub use windows::Win32::Foundation::{HANDLE, HWND};
69-
#[cfg(feature = "win32")]
69+
#[cfg(all(feature = "win32", windows))]
7070
pub use windows::Win32::UI::WindowsAndMessaging::{HCURSOR, HICON, MSG};

0 commit comments

Comments
 (0)