diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-01-27 18:59:41 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-01-27 19:00:04 +0100 |
| commit | 34aa326d9995b1372429bbc712f0a6b5ad8170a6 (patch) | |
| tree | 4ebb81f1e2ef53c1abb2342f5f91d57ae2ea29fe /core/c | |
| parent | f918bc9f50386971d7f2c0035485b07481ded769 (diff) | |
put FILE in core:c and use that in bindings to fix wasm
Diffstat (limited to 'core/c')
| -rw-r--r-- | core/c/c.odin | 2 | ||||
| -rw-r--r-- | core/c/libc/stdio.odin | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/c/c.odin b/core/c/c.odin index 3dfc19ffc..73727d8d5 100644 --- a/core/c/c.odin +++ b/core/c/c.odin @@ -114,3 +114,5 @@ CHAR_BIT :: 8 va_list :: struct #align(16) { _: [4096]u8, } + +FILE :: struct {} diff --git a/core/c/libc/stdio.odin b/core/c/libc/stdio.odin index a94a53696..56e4e8f66 100644 --- a/core/c/libc/stdio.odin +++ b/core/c/libc/stdio.odin @@ -1,5 +1,6 @@ package libc +import "core:c" import "core:io" when ODIN_OS == .Windows { @@ -15,7 +16,7 @@ when ODIN_OS == .Windows { // 7.21 Input/output -FILE :: struct {} +FILE :: c.FILE Whence :: enum int { SET = SEEK_SET, |