about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-09-01 17:28:11 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2021-01-13 07:49:45 -0500
commit4614671cae99ff35e61708ab64e9ba7850711750 (patch)
tree484521562c7103cf8943221696678d2365791086 /library/std/src/sys
parent920b5ee722c11a86811858368c95d8d85659680a (diff)
downloadrust-4614671cae99ff35e61708ab64e9ba7850711750.tar.gz
rust-4614671cae99ff35e61708ab64e9ba7850711750.zip
Update code to account for extern ABI requirement
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/unix/weak.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/weak.rs b/library/std/src/sys/unix/weak.rs
index e93a4972caa..432fe4c33bc 100644
--- a/library/std/src/sys/unix/weak.rs
+++ b/library/std/src/sys/unix/weak.rs
@@ -28,7 +28,7 @@ use crate::sync::atomic::{self, AtomicUsize, Ordering};
 
 macro_rules! weak {
     (fn $name:ident($($t:ty),*) -> $ret:ty) => (
-        static $name: crate::sys::weak::Weak<unsafe extern fn($($t),*) -> $ret> =
+        static $name: crate::sys::weak::Weak<unsafe extern "C" fn($($t),*) -> $ret> =
             crate::sys::weak::Weak::new(concat!(stringify!($name), '\0'));
     )
 }