zig fmt now replaces c_void with anyopaque to make updating code easy.
std.Target.current
@import("builtin").target