mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-27 13:00:49 +00:00
Replace #[start] with extern fn main
This commit is contained in:
parent
ad8dd4148b
commit
dbb909136e
@ -1,9 +1,12 @@
|
||||
#![allow(internal_features)]
|
||||
#![feature(lang_items, start)]
|
||||
#![feature(lang_items)]
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
#[start]
|
||||
fn start(_argc: isize, _argv: *const *const u8) -> isize {
|
||||
use core::ffi::c_int;
|
||||
|
||||
#[no_mangle]
|
||||
extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {
|
||||
0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user