mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 13:09:22 +00:00
🔧 Fix requiring an emscripten macro in non-wasm architectures
This commit is contained in:
parent
5b18f1d76d
commit
1d7ff1f9e4
@ -1,9 +1,7 @@
|
|||||||
use crate::get_now;
|
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
pub fn get_time() -> i32 {
|
pub fn get_time() -> i32 {
|
||||||
get_now!() as i32
|
crate::get_now!() as i32
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user