mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-17 02:41:21 +00:00
Fix lint errors and windows build
This commit is contained in:
@ -24,6 +24,14 @@ use wasmer_runtime_core::{
|
||||
Func, Instance, IsExport, Module,
|
||||
};
|
||||
|
||||
#[cfg(unix)]
|
||||
use ::libc::DIR as libcDIR;
|
||||
|
||||
// We use a placeholder for windows
|
||||
#[cfg(not(unix))]
|
||||
type libcDIR = u8;
|
||||
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
||||
@ -76,8 +84,6 @@ lazy_static! {
|
||||
const GLOBAL_BASE: u32 = 1024;
|
||||
const STATIC_BASE: u32 = GLOBAL_BASE;
|
||||
|
||||
use ::libc::DIR as libcDIR;
|
||||
|
||||
pub struct EmscriptenData<'a> {
|
||||
pub malloc: Func<'a, u32, u32>,
|
||||
pub free: Func<'a, u32>,
|
||||
|
Reference in New Issue
Block a user