Hi, I am trying to learn how I can move my windows programming over from c to zig by starting with a basic window using only the win32 api and a cimport of windows.h. I am running into this issue where I can't use the macros from the cimport of windows.h as it results in the following error on zig build run:
cimport.zig:55490:29: error: unable to translate macro: undefined identifier `A`
pub const __MINGW_NAME_AW = @compileError("unable to translate macro: undefined identifier `A`");
Here is the basic setup I got right now with just an hInstancevariable for trying the cimport out:
const windows = @cImport(@cInclude("windows.h"));
pub fn main() !void {
const hInstance: windows.HINSTANCE = windows.GetModuleHandle(null);
_ = hInstance;
}
Thanks for any help in advance