]> git.meshlink.io Git - catta/blob - src/compat/windows/wincompat.h
531aadd8b0c47e1ae9ec503827773c3b63295090
[catta] / src / compat / windows / wincompat.h
1 #ifndef foowincompatfoo
2 #define foowincompatfoo
3
4 #undef WINVER
5 #undef _WIN32_WINNT
6
7 #define WINVER 0x0600       // Vista
8 #define _WIN32_WINNT WINVER
9
10 #include <winsock2.h>
11 #include <ws2tcpip.h>
12
13
14 struct utsname {
15    char sysname[9];    /* Operating system name (e.g., "Linux") */
16    char nodename[MAX_COMPUTERNAME_LENGTH+1];
17                        /* Name within "some implementation-defined network" */
18    char release[9];    /* Operating system release (e.g., "2.6.28") */
19    char version[9];    /* Operating system version */
20    char machine[9];    /* Hardware identifier */
21 };
22
23 int uname(struct utsname *buf);
24
25
26 #endif