sokol-zig icon indicating copy to clipboard operation
sokol-zig copied to clipboard

Reminder: macOS ABI issues for small structs are fixed in zig 0.9.0

Open floooh opened this issue 4 years ago • 1 comments

This means small structs used as function args or return values no longer need to be padded to become bigger than 16 bytes, so the SOKOL_ZIG_BINDINGS hack can be removed from the sokol headers and sokol-zig bindings once zig 0.9.0 is released.

(see: https://github.com/ziglang/zig/issues/3211)

floooh avatar Aug 05 '21 19:08 floooh

PS: are they actually? Need to test on an Intel Mac!

floooh avatar Jul 11 '22 12:07 floooh

I actually removed the struct padding hack quite recently (it is at least no longer an issue on M1 Macs, haven't actually tested in Intel Macs though)

floooh avatar Aug 07 '23 12:08 floooh