소스 검색

remove win32 ref

Colin Davidson 2 년 전
부모
커밋
707c2b3d7a
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      core/net/interface_windows.odin

+ 2 - 3
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()
-}
+}