diff options
| author | ryuukk <44361234+ryuukk@users.noreply.github.com> | 2023-07-11 03:45:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-11 03:45:08 +0200 |
| commit | 20e5e95ff85cd0d590fa152aec3d8942c0d665e2 (patch) | |
| tree | 056bf45eaf05cd73c2c2aae4318a37ce1bf90654 /core | |
| parent | a238f788551847cdabf7e27c3c6883b2be54d51d (diff) | |
Deprecate htons, htonl, ntohl, ntohs
Diffstat (limited to 'core')
| -rw-r--r-- | core/sys/windows/ws2_32.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/sys/windows/ws2_32.odin b/core/sys/windows/ws2_32.odin index c09b714ca..6e5c37345 100644 --- a/core/sys/windows/ws2_32.odin +++ b/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) ntohs :: proc(netshort: c_ushort) -> c_ushort --- // [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 --- // [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 --- } |