Hello, I'm trying to @cInclude('fenster.h') but when I compile, the zig compiler throws an error on the translated source code for:
f->mod = (!!(m & ControlMask)) | !!(m & ShiftMask) << 1) | (!!(m & Mod1Mask) << 2) | (!!(m & Mod4Mask) << 3);
It doesn't seem to like the C trick of double negation to get numbers. As it gives "Bitshifting operator expected int, but found bool" for that line. In the translated zig, I can see a few casts, do my first thought was export the header to zig and add another cast, but it does #define os-specific headers that I don't really want to translate to cImports by hand