static linking works when cc lto is disabled

ffi
Avril 3 years ago
parent ce642b5f51
commit 7226ebdb7b
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,6 +1,8 @@
use super::*; use super::*;
use libc::{c_void, FILE}; use libc::{c_void, FILE};
//TODO: Remove `wrapper.c`, implement it in Rust here
//FILE* _cc20c_create(cc20_sink_t* restrict sink) //FILE* _cc20c_create(cc20_sink_t* restrict sink)
extern "C" { extern "C" {
fn _cc20c_create(sink: *mut c_void) -> *mut FILE; fn _cc20c_create(sink: *mut c_void) -> *mut FILE;

Loading…
Cancel
Save