diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2023-03-01 18:24:37 -0800 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2023-03-01 18:24:37 -0800 |
| commit | 707c2b3d7a621529f9232eced0fbe85f77b2731e (patch) | |
| tree | f812ac36306520cb921883e1b8ac140fc50b512e /core | |
| parent | 14eed79a218aa6778276bed6f4d411ebbd86d538 (diff) | |
remove win32 ref
Diffstat (limited to 'core')
| -rw-r--r-- | core/net/interface_windows.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/net/interface_windows.odin b/core/net/interface_windows.odin index 57cc0e8ef..a9634afee 100644 --- a/core/net/interface_windows.odin +++ b/core/net/interface_windows.odin @@ -18,7 +18,6 @@ package net import sys "core:sys/windows" -import win32 "core:sys/win32" import strings "core:strings" MAX_INTERFACE_ENUMERATION_TRIES :: 3 @@ -144,7 +143,7 @@ enumerate_interfaces :: proc(allocator := context.allocator) -> (interfaces: []N Takes a UTF-16 Wstring and clones it. */ wstring_to_string :: proc(s: ^u16, max_size := 256, allocator := context.allocator) -> (res: string) { - temp := win32.wstring_to_utf8((win32.Wstring)(s), max_size, context.temp_allocator) + temp := sys.wstring_to_utf8((sys.Wstring)(s), max_size, context.temp_allocator) return strings.clone(temp[:len(temp)], allocator) } @@ -179,4 +178,4 @@ parse_socket_address :: proc(addr_in: sys.SOCKET_ADDRESS) -> (addr: Endpoint) { case: return // Empty or invalid address type } unreachable() -}
\ No newline at end of file +} |