Skip to content

Commit 1bd69fe

Browse files
committed
Merge pull request #1 from troplin/master
[repr(C)] fn should be extern "C" fn
2 parents 165f870 + 5c6a2ce commit 1bd69fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ mod platform {
5252
use std::sync::atomic::Ordering;
5353
use super::Signal;
5454

55-
#[repr(C)]
56-
pub fn handler(sig: c_int) {
55+
pub extern "C" fn handler(sig: c_int) {
5756
let mask = match sig {
5857
SIGHUP => 1,
5958
SIGINT => 2,

0 commit comments

Comments
 (0)