提交 345ac844 authored 作者: Serhij S's avatar Serhij S

panic_os on non-linux only

上级 95caa6dc
...@@ -32,6 +32,7 @@ fn is_realtime() -> bool { ...@@ -32,6 +32,7 @@ fn is_realtime() -> bool {
REALTIME_MODE.load(Ordering::Relaxed) REALTIME_MODE.load(Ordering::Relaxed)
} }
#[cfg(not(target_os = "linux"))]
macro_rules! panic_os { macro_rules! panic_os {
() => { () => {
panic!("The function is not supported on this OS"); panic!("The function is not supported on this OS");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论