소스 검색

use multi pointer here, cstring was incorrect

Dale Weiler 3 년 전
부모
커밋
357d085ffb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      vendor/ENet/enet.odin

+ 2 - 2
vendor/ENet/enet.odin

@@ -354,8 +354,8 @@ foreign ENet {
 
 	address_set_host_ip            :: proc(address: ^Address, hostName: cstring) -> i32 ---
 	address_set_host               :: proc(address: ^Address, hostName: cstring) -> i32 ---
-	address_get_host_ip            :: proc(address: ^Address, hostName: cstring, nameLength: uint) -> i32 ---
-	address_get_host               :: proc(address: ^Address, hostName: cstring, nameLength: uint) -> i32 ---
+	address_get_host_ip            :: proc(address: ^Address, hostName: [^]u8, nameLength: uint) -> i32 ---
+	address_get_host               :: proc(address: ^Address, hostName: [^]u8, nameLength: uint) -> i32 ---
 
 	packet_create                  :: proc(rawptr, uint, u32) -> ^Packet ---
 	packet_destroy                 :: proc(^Packet) ---