Skip to content

Commit 77b6bce

Browse files
authored
Move WASI types into separate header (#2724)
To allow anything to depend on WASI types, including platform-specific data structures, move the WASI libc filesystem/clock interface into `platform_api_extension.h`, which leaves just WASI types in `platform_wasi.h`. And `platform_wasi.h` has been renamed to `platform_wasi_types.h` to reflect that it only defines types now and no function declarations. Finally, these changes allow us to remove the `windows_fdflags` type which was essentially a duplicate of `__wasi_fdflags_t`.
1 parent 13875f4 commit 77b6bce

File tree

6 files changed

+536
-541
lines changed

6 files changed

+536
-541
lines changed

core/shared/platform/common/libc-util/libc_errno.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef WASI_ERRNO_H
77
#define WASI_ERRNO_H
88

9-
#include "platform_wasi.h"
9+
#include "platform_wasi_types.h"
1010

1111
// Converts an errno error code to a WASI error code.
1212
__wasi_errno_t

0 commit comments

Comments
 (0)