diff --git a/cbindgen.toml b/cbindgen.toml index ddb27e5..f31ddbe 100644 --- a/cbindgen.toml +++ b/cbindgen.toml @@ -8,6 +8,7 @@ autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't mod rename_variants = "QualifiedScreamingSnakeCase" [defines] +"target_os = android" = "__ANDROID__" "target_os = linux" = "__linux__" "target_os = macos" = "__APPLE__" "target_arch = wasm32" = "__EMSCRIPTEN__" diff --git a/src/backends/mod.rs b/src/backends/mod.rs index c36c233..a40ca57 100644 --- a/src/backends/mod.rs +++ b/src/backends/mod.rs @@ -16,6 +16,7 @@ mod appkit; #[cfg(any(target_os = "macos", target_os = "ios"))] mod av_foundation; +/// cbindgen:ignore #[cfg(target_os = "android")] mod android;