Skip to content

Commit 929ad83

Browse files
glib/win32: Mark the function as windows only
Otherwise we fail to find std::os::windows when building docs
1 parent 3f72bfb commit 929ad83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

glib-win32/src/functions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::path::PathBuf;
44

55
#[doc(alias = "g_win32_get_package_installation_directory_of_module")]
66
#[doc(alias = "get_package_installation_directory_of_module")]
7+
#[cfg(all(docsrs, windows))]
78
pub fn package_installation_directory_of_module(
89
hmodule: std::os::windows::raw::HANDLE,
910
) -> Result<PathBuf, std::io::Error> {

0 commit comments

Comments
 (0)