If your code importing windows.h
works when you set .link_libc = true
, then you have no choice.
Zig will happily try and internally translate headers you throw at it irrespective of libc being available. Only when that import/translate fails will it point out that fact to you as it very likely is the source of your problem.