| ... | @@ -28,7 +28,7 @@ const POINT = windows.POINT; | ... | @@ -28,7 +28,7 @@ const POINT = windows.POINT; |
| 28 | const HCURSOR = windows.HCURSOR; | 28 | const HCURSOR = windows.HCURSOR; |
| 29 | const HBRUSH = windows.HBRUSH; | 29 | const HBRUSH = windows.HBRUSH; |
| 30 | | 30 | |
| 31 | fn selectSymbol(comptime function_static: anytype, function_dynamic: @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) @TypeOf(function_static) { | 31 | fn selectSymbol(comptime function_static: anytype, function_dynamic: *const @TypeOf(function_static), comptime os: std.Target.Os.WindowsVersion) *const @TypeOf(function_static) { |
| 32 | comptime { | 32 | comptime { |
| 33 | const sym_ok = builtin.os.isAtLeast(.windows, os); | 33 | const sym_ok = builtin.os.isAtLeast(.windows, os); |
| 34 | if (sym_ok == true) return function_static; | 34 | if (sym_ok == true) return function_static; |