Commit b936bbd2f1

Carlos Zúñiga <carlos.zun@gmail.com>
2021-07-06 19:37:31
Fixed builtin.Target -> std.Target
1 parent 23f414b
Changed files (1)
lib
std
os
windows
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");