> Sometimes a common header defines the same-named structure, type or macro > differently depending on your platform. > > For example, here’s a definition from termios.h on OSX: > > #define CSIZE 0x00000300 /* character size mask */ > > And here’s the same one on some old Linux: > > #define CSIZE 0000060
You'll need to do something like this: #[cfg(target_os="macos")] pub static CSIZE: ulong_t = 0x300; #[cfg(target_os="linux")] pub static CSIZE: ulong_t = 0x60; jack. _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev