xref: /third_party/rust/crates/libc/src/windows/gnu/mod.rs (revision 2add0d91)
1pub const L_tmpnam: ::c_uint = 14;
2pub const TMP_MAX: ::c_uint = 0x7fff;
3
4// stdio file descriptor numbers
5pub const STDIN_FILENO: ::c_int = 0;
6pub const STDOUT_FILENO: ::c_int = 1;
7pub const STDERR_FILENO: ::c_int = 2;
8
9extern "C" {
10    pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
11    pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char, n: ::size_t) -> ::c_int;
12
13    // NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>`
14    //      header file. We cannot find a way to link to that symbol from Rust.
15    pub fn wmemchr(cx: *const ::wchar_t, c: ::wchar_t, n: ::size_t) -> *mut ::wchar_t;
16}
17
18cfg_if! {
19    if #[cfg(libc_align)] {
20        mod align;
21        pub use self::align::*;
22    }
23}
24