summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/windows.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/windows.rs b/src/windows.rs
index 0f0dc6b0ba..1d2d96b4ff 100644
--- a/src/windows.rs
+++ b/src/windows.rs
@@ -379,8 +379,10 @@ extern {
#[link_name = "_wsetlocale"]
pub fn wsetlocale(category: ::c_int,
locale: *const wchar_t) -> *mut wchar_t;
+}
- cfg_if! {
+cfg_if! {
+ extern {
if #[cfg(all(target_env = "gnu"))] {
pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
pub fn strncasecmp(s1: *const c_char, s2: *const c_char,