diff options
Diffstat (limited to 'libc/src/windows/gnu/mod.rs')
-rw-r--r-- | libc/src/windows/gnu/mod.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libc/src/windows/gnu/mod.rs b/libc/src/windows/gnu/mod.rs new file mode 100644 index 0000000..e74628b --- /dev/null +++ b/libc/src/windows/gnu/mod.rs @@ -0,0 +1,23 @@ +pub const L_tmpnam: ::c_uint = 14; +pub const TMP_MAX: ::c_uint = 0x7fff; + +// stdio file descriptor numbers +pub const STDIN_FILENO: ::c_int = 0; +pub const STDOUT_FILENO: ::c_int = 1; +pub const STDERR_FILENO: ::c_int = 2; + +extern "C" { + pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int; + pub fn strncasecmp( + s1: *const ::c_char, + s2: *const ::c_char, + n: ::size_t, + ) -> ::c_int; +} + +cfg_if! { + if #[cfg(libc_align)] { + mod align; + pub use self::align::*; + } +} |