1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! Types and constants specific to 32-bit wasi. These are similar to the types
//! in the `host` module, but pointers and `usize` values are replaced with
//! `u32`-sized types.

#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(dead_code)]

use crate::wasi::*;
use wig::witx_wasi32_types;

pub type uintptr_t = u32;
pub type size_t = u32;

witx_wasi32_types!("snapshot" "wasi_snapshot_preview1");