mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 17:26:18 +02:00
🔧 Fix requiring an emscripten macro in non-wasm architectures
This commit is contained in:
parent
5b18f1d76d
commit
1d7ff1f9e4
1 changed files with 1 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
|||
use crate::get_now;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub fn get_time() -> i32 {
|
||||
get_now!() as i32
|
||||
crate::get_now!() as i32
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue