Browse Source

Add init method to force linking

pull/4/head
AzureMarker 3 years ago
parent
commit
3220e60578
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 6
      src/lib.rs

6
src/lib.rs

@ -2,6 +2,12 @@ @@ -2,6 +2,12 @@
extern crate libc;
/// Call this somewhere to force Rust to link this module.
/// The call doesn't need to execute, just exist.
///
/// See https://github.com/rust-lang/rust/issues/47384
pub fn init() {}
#[no_mangle]
extern "C" fn posix_memalign(
memptr: *mut *mut libc::c_void,

Loading…
Cancel
Save