Skip to content

Commit cbbcd87

Browse files
committed
Correct calling convention
1 parent 62f37da commit cbbcd87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/sys/windows/c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ impl Default for IO_STATUS_BLOCK {
326326
}
327327
}
328328

329-
pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "C" fn(
329+
pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "system" fn(
330330
dwErrorCode: DWORD,
331331
dwNumberOfBytesTransfered: DWORD,
332332
lpOverlapped: *mut OVERLAPPED,

library/std/src/sys/windows/pipe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl AnonPipe {
282282
}
283283

284284
// STEP 3: The callback.
285-
unsafe extern "C" fn callback(
285+
unsafe extern "system" fn callback(
286286
dwErrorCode: u32,
287287
dwNumberOfBytesTransfered: u32,
288288
lpOverlapped: *mut c::OVERLAPPED,

0 commit comments

Comments
 (0)