mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
add missing timeval struct
This commit is contained in:
parent
54d196bb30
commit
ea4a07701e
@ -11,11 +11,11 @@ const USHORT = windows.USHORT;
|
|||||||
const WCHAR = windows.WCHAR;
|
const WCHAR = windows.WCHAR;
|
||||||
const BOOL = windows.BOOL;
|
const BOOL = windows.BOOL;
|
||||||
const HANDLE = windows.HANDLE;
|
const HANDLE = windows.HANDLE;
|
||||||
const timeval = windows.timeval;
|
|
||||||
const HWND = windows.HWND;
|
const HWND = windows.HWND;
|
||||||
const INT = windows.INT;
|
const INT = windows.INT;
|
||||||
const SHORT = windows.SHORT;
|
const SHORT = windows.SHORT;
|
||||||
const CHAR = windows.CHAR;
|
const CHAR = windows.CHAR;
|
||||||
|
const LONG = windows.LONG;
|
||||||
const ULONG = windows.ULONG;
|
const ULONG = windows.ULONG;
|
||||||
const LPARAM = windows.LPARAM;
|
const LPARAM = windows.LPARAM;
|
||||||
const FARPROC = windows.FARPROC;
|
const FARPROC = windows.FARPROC;
|
||||||
@ -1261,6 +1261,11 @@ pub const hostent = extern struct {
|
|||||||
h_addr_list: **i8,
|
h_addr_list: **i8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const timeval = extern struct {
|
||||||
|
tv_sec: LONG,
|
||||||
|
tv_usec: LONG,
|
||||||
|
};
|
||||||
|
|
||||||
// https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2
|
// https://docs.microsoft.com/en-au/windows/win32/winsock/windows-sockets-error-codes-2
|
||||||
pub const WinsockError = enum(u16) {
|
pub const WinsockError = enum(u16) {
|
||||||
/// Specified event object handle is invalid.
|
/// Specified event object handle is invalid.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user