Browse Source

Merge pull request #2647 from ryuukk/patch-6

core:sys/windows: Deprecate htons, htonl, ntohl, ntohs in favor of endian specific integers
Jeroen van Rijn 2 years ago
parent
commit
5c068a9062
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/sys/windows/ws2_32.odin

+ 2 - 0
core/sys/windows/ws2_32.odin

@@ -211,7 +211,9 @@ foreign ws2_32 {
 	// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-ntohs)
 	// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-ntohs)
 	ntohs :: proc(netshort: c_ushort) -> c_ushort ---
 	ntohs :: proc(netshort: c_ushort) -> c_ushort ---
 	// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htonl)
 	// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htonl)
+	@(deprecated="Use endian specific integers instead, https://odin-lang.org/docs/overview/#basic-types")
 	htonl :: proc(hostlong: c_ulong) -> c_ulong ---
 	htonl :: proc(hostlong: c_ulong) -> c_ulong ---
 	// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons)
 	// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons)
+	@(deprecated="Use endian specific integers instead, https://odin-lang.org/docs/overview/#basic-types")
 	htons :: proc(hostshort: c_ushort) -> c_ushort ---
 	htons :: proc(hostshort: c_ushort) -> c_ushort ---
 }
 }