fix: android build
This commit is contained in:
parent
60925057f0
commit
038d660e60
@ -149,6 +149,12 @@ pub fn get_default_sound_input() -> Option<String> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||||
|
pub fn get_default_sound_input() -> Option<String> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
pub fn update_clipboard(clipboard: Clipboard, old: Option<&Arc<Mutex<String>>>) {
|
pub fn update_clipboard(clipboard: Clipboard, old: Option<&Arc<Mutex<String>>>) {
|
||||||
let content = if clipboard.compress {
|
let content = if clipboard.compress {
|
||||||
|
@ -541,7 +541,7 @@ pub fn main_get_default_sound_input() -> Option<String> {
|
|||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
return get_default_sound_input();
|
return get_default_sound_input();
|
||||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||||
String::from("")
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn main_get_hostname() -> SyncReturn<String> {
|
pub fn main_get_hostname() -> SyncReturn<String> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user