]> git.lizzy.rs Git - rust.git/commitdiff
windows: provide NonZeroDWORD
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 3 Mar 2021 11:36:07 +0000 (11:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 May 2021 10:18:08 +0000 (11:18 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
library/std/src/sys/windows/c.rs

index 7ea6048e94a883e0fea616733edadb3fb73797d4..e91c489361ea6825b6973907d7a4ab027cae54b6 100644 (file)
@@ -4,6 +4,7 @@
 #![cfg_attr(test, allow(dead_code))]
 #![unstable(issue = "none", feature = "windows_c")]
 
+use crate::os::raw::NonZero_c_ulong;
 use crate::os::raw::{c_char, c_int, c_long, c_longlong, c_uint, c_ulong, c_ushort};
 use crate::ptr;
 
@@ -13,6 +14,7 @@
 pub use self::FILE_INFO_BY_HANDLE_CLASS::*;
 
 pub type DWORD = c_ulong;
+pub type NonZeroDWORD = NonZero_c_ulong;
 pub type HANDLE = LPVOID;
 pub type HINSTANCE = HANDLE;
 pub type HMODULE = HINSTANCE;