Skip to content

Commit 20da3e1

Browse files
committed
Allow compiling on windows
1 parent 811d778 commit 20da3e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/foundation/ns_number.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ impl From<c_uint> for Arc<NSNumber> {
107107
}
108108
}
109109

110+
#[cfg(not(windows))] // On windows, c_long and c_int are the same type.
110111
impl From<c_long> for Arc<NSNumber> {
111112
#[inline]
112113
fn from(value: c_long) -> Self {
113114
NSNumber::from_long(value)
114115
}
115116
}
116117

118+
#[cfg(not(windows))] // On windows, c_ulong and c_uint are the same type.
117119
impl From<c_ulong> for Arc<NSNumber> {
118120
#[inline]
119121
fn from(value: c_ulong) -> Self {

0 commit comments

Comments
 (0)