| ... | @@ -11,11 +11,11 @@ const USHORT = windows.USHORT; | ... | @@ -11,11 +11,11 @@ const USHORT = windows.USHORT; |
| 11 | const WCHAR = windows.WCHAR; | 11 | const WCHAR = windows.WCHAR; |
| 12 | const BOOL = windows.BOOL; | 12 | const BOOL = windows.BOOL; |
| 13 | const HANDLE = windows.HANDLE; | 13 | const HANDLE = windows.HANDLE; |
| 14 | const timeval = windows.timeval; | | |
| 15 | const HWND = windows.HWND; | 14 | const HWND = windows.HWND; |
| 16 | const INT = windows.INT; | 15 | const INT = windows.INT; |
| 17 | const SHORT = windows.SHORT; | 16 | const SHORT = windows.SHORT; |
| 18 | const CHAR = windows.CHAR; | 17 | const CHAR = windows.CHAR; |
| | 18 | const LONG = windows.LONG; |
| 19 | const ULONG = windows.ULONG; | 19 | const ULONG = windows.ULONG; |
| 20 | const LPARAM = windows.LPARAM; | 20 | const LPARAM = windows.LPARAM; |
| 21 | const FARPROC = windows.FARPROC; | 21 | const FARPROC = windows.FARPROC; |
| ... | @@ -1261,6 +1261,11 @@ pub const hostent = extern struct { | ... | @@ -1261,6 +1261,11 @@ pub const hostent = extern struct { |
| 1261 | h_addr_list: **i8, | 1261 | h_addr_list: **i8, |
| 1262 | }; | 1262 | }; |
| 1263 | | 1263 | |
| | 1264 | pub const timeval = extern struct { |
| | 1265 | tv_sec: LONG, |
| | 1266 | tv_usec: LONG, |
| | 1267 | }; |
| | 1268 | |
| 1264 | // https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2 | 1269 | // https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2 |
| 1265 | pub const WinsockError = enum(u16) { | 1270 | pub const WinsockError = enum(u16) { |
| 1266 | /// Specified event object handle is invalid. | 1271 | /// Specified event object handle is invalid. |