1 // Copyright 2013-2018, The Gtk-rs Project Developers.
2 // See the COPYRIGHT file at the top-level directory of this distribution.
3 // Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
4 
5 #[allow(unused_imports)]
6 use libc::{c_int, c_ushort, c_void};
7 
8 #[cfg(windows)]
9 pub type GPid = *mut c_void;
10 
11 #[cfg(not(windows))]
12 pub type GPid = c_int;
13 
14 #[repr(C)]
15 #[derive(Copy, Clone)]
16 #[cfg(all(windows, target_arch = "x86_64"))]
17 pub struct GPollFD {
18     pub fd: i64,
19     pub events: c_ushort,
20     pub revents: c_ushort,
21 }
22 
23 #[repr(C)]
24 #[derive(Copy, Clone)]
25 #[cfg(not(all(windows, target_arch = "x86_64")))]
26 pub struct GPollFD {
27     pub fd: c_int,
28     pub events: c_ushort,
29     pub revents: c_ushort,
30 }
31