Skip to content

Commit 46f08b5

Browse files
committed
Pull cfg_if! outside the extern
1 parent 08eaa2c commit 46f08b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/windows.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,10 @@ extern {
379379
#[link_name = "_wsetlocale"]
380380
pub fn wsetlocale(category: ::c_int,
381381
locale: *const wchar_t) -> *mut wchar_t;
382+
}
382383

383-
cfg_if! {
384+
cfg_if! {
385+
extern {
384386
if #[cfg(all(target_env = "gnu"))] {
385387
pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
386388
pub fn strncasecmp(s1: *const c_char, s2: *const c_char,

0 commit comments

Comments
 (0)