floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.12k stars 501 forks source link

sokol-zig: work around a breaking Zig stdlib naming change #1100

Closed floooh closed 3 months ago

floooh commented 3 months ago

The injected asRange helper function broke because of this naming change:

https://github.com/ziglang/zig/commit/0fe3fd01ddc2cd49c6a2b939577d16b9d2c65ea9

The fix makes it work with both the old and new naming convention (although support for the old convention should be removed once zig 0.14.0 is out, or when support for zig 0.13.0 is moved into a branch).