1#[allow(unused_imports)]
6use libc::{c_int, c_ushort, c_void};
7
8#[cfg(windows)]
9pub type GPid = *mut c_void;
10
11#[cfg(not(windows))]
12pub type GPid = c_int;
13
14#[repr(C)]
15#[derive(Copy, Clone)]
16#[cfg(all(windows, target_arch = "x86_64"))]
17pub 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")))]
26pub struct GPollFD {
27 pub fd: c_int,
28 pub events: c_ushort,
29 pub revents: c_ushort,
30}