From b936bbd2f10e28b4b6c34aa75fcf8dff23cb6aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Z=C3=BA=C3=B1iga?= Date: Tue, 6 Jul 2021 12:37:31 -0500 Subject: [PATCH] Fixed builtin.Target -> std.Target --- lib/std/os/windows/user32.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/windows/user32.zig b/lib/std/os/windows/user32.zig index 0138f22546..ee4ee87d88 100644 --- a/lib/std/os/windows/user32.zig +++ b/lib/std/os/windows/user32.zig @@ -14,7 +14,7 @@ const SetLastError = windows.kernel32.SetLastError; fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { comptime { - const sym_ok = builtin.Target.current.os.isAtLeast(.windows, os); + const sym_ok = std.Target.current.os.isAtLeast(.windows, os); if (sym_ok == true) return function_static; if (sym_ok == null) return function_dynamic; if (sym_ok == false) @compileError("Target OS range does not support function, at least " ++ @tagName(os) ++ " is required");