| ... | @@ -12,7 +12,7 @@ const unexpectedError = windows.unexpectedError; | ... | @@ -12,7 +12,7 @@ const unexpectedError = windows.unexpectedError; |
| 12 | const GetLastError = windows.kernel32.GetLastError; | 12 | const GetLastError = windows.kernel32.GetLastError; |
| 13 | const SetLastError = windows.kernel32.SetLastError; | 13 | const SetLastError = windows.kernel32.SetLastError; |
| 14 | | 14 | |
| 15 | fn selectSymbol(comptime function_static: anytype, function_dynamic: anytype, comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { | 15 | fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { |
| 16 | comptime { | 16 | comptime { |
| 17 | const sym_ok = builtin.Target.current.os.isAtLeast(.windows, os); | 17 | const sym_ok = builtin.Target.current.os.isAtLeast(.windows, os); |
| 18 | if (sym_ok == true) return function_static; | 18 | if (sym_ok == true) return function_static; |