Add an init method to force linking
@ -5,10 +5,5 @@ version = "0.1.0"
license = "MIT/Apache 2.0"
edition = "2021"
[lib]
[dependencies]
name = "pthread_3ds"
libc = { git = "https://github.com/Meziu/libc.git" }
path = "src/lib.rs"
crate-type = ["staticlib", "lib"]
[dependencies.libc]
git = "https://github.com/Meziu/libc.git"
@ -1,6 +1,12 @@
#![feature(thread_local)]
#![allow(non_camel_case_types)]
/// 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() {}
// LIBCTRU THREADS
pub type _LOCK_T = i32;