I'm getting the following error when I try to run code that I'm pretty sure used to work.
error: expected type '[*c]cimport.struct_SDL_Surface', found '*cimport.struct_SDL_Surface'
Did the Zig compiler change? I thought
Outside of automatically translated C code, the usage of [*c] is almost always a bad idea, and should almost never be used.
I tried casting my pointer but it gives the same error
const texture = sdl.SDL_CreateTextureFromSurface(self.sdlRenderer, @ptrCast(@as([*c]sdl.SDL_Surface, ctx._cairoItems.sdlSurface)));