mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 19:22: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)]
|
#[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…
Add table
Add a link
Reference in a new issue