-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(c-api)
wasi_version_t
has a C representation now.
On Windows, using a `u32` representation for `wasi_version_t` fails if a C++ compiler is used to treat a C program. So we change our strategy here. We use a C representation to be FFI-safe, and the `INVALID_VERSION` variant is now set to -1 instead of `u32::MAX`. This patch also adds unit tests for `wasi_get_wasi_version` so that we are sure of the behavior of this `type` on all platforms.
- Loading branch information
Showing
1 changed file
with
103 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters