]> git.proxmox.com Git - rustc.git/blame - vendor/libc/src/windows/gnu/mod.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / vendor / libc / src / windows / gnu / mod.rs
CommitLineData
69743fb6
XL
1pub const L_tmpnam: ::c_uint = 14;
2pub const TMP_MAX: ::c_uint = 0x7fff;
3
0731742a
XL
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
e74abb32 9extern "C" {
69743fb6 10 pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
cdc7bbd5 11 pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char, n: ::size_t) -> ::c_int;
ba9703b0
XL
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.
cdc7bbd5 15 pub fn wmemchr(cx: *const ::wchar_t, c: ::wchar_t, n: ::size_t) -> *mut ::wchar_t;
e74abb32
XL
16}
17
18cfg_if! {
19 if #[cfg(libc_align)] {
20 mod align;
21 pub use self::align::*;
22 }
69743fb6 23}