Skip to content

Commit 4cd98b6

Browse files
committed
libstd: windows: compat: Allow use of attributes
1 parent 23522e4 commit 4cd98b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/sys/windows/compat.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ pub fn store_func(ptr: &AtomicUsize, module: &str, symbol: &str,
3737

3838
macro_rules! compat_fn {
3939
($module:ident: $(
40+
$(#[$meta:meta])*
4041
pub fn $symbol:ident($($argname:ident: $argtype:ty),*)
4142
-> $rettype:ty {
4243
$($body:expr);*
4344
}
4445
)*) => ($(
4546
#[allow(unused_variables)]
47+
$(#[$meta])*
4648
pub unsafe fn $symbol($($argname: $argtype),*) -> $rettype {
4749
use crate::sync::atomic::{AtomicUsize, Ordering};
4850
use crate::mem;

0 commit comments

Comments
 (0)