mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
2.07k stars 74 forks source link

Fix C struct alignment issue #32

Closed iacore closed 1 year ago

iacore commented 1 year ago

Now they can't be aligned more

mitchellh commented 1 year ago

Thanks!

iacore commented 1 year ago

this might be too aligned. You should generate alignment for each struct from Zig's @alignOf