mirror of
https://github.com/Noratrieb/portability.git
synced 2026-01-15 00:05:02 +01:00
fixes
This commit is contained in:
parent
091e833acf
commit
dc6ef2108d
17 changed files with 221 additions and 39 deletions
18
test2/small_dll.rs
Normal file
18
test2/small_dll.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#![no_std]
|
||||
#![crate_type = "cdylib"]
|
||||
#![windows_subsystem = "console"]
|
||||
|
||||
#[panic_handler]
|
||||
fn handle_panic(_: &core::panic::PanicInfo<'_>) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn my_export() -> u32 {
|
||||
42
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "stdcall" fn _DllMainCRTStartup() -> u32 {
|
||||
0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue