win32/include/winapi changes from https://github.com/run4flat/tinycc.git
[tinycc.git] / win32 / include / winapi / inaddr.h
blobf7a5492c814479943d3d04fd6aa83218a52444b3
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
7 #ifndef s_addr
9 #include <_bsd_types.h>
11 typedef struct in_addr {
12 union {
13 struct { u_char s_b1, s_b2, s_b3, s_b4; } S_un_b;
14 struct { u_short s_w1, s_w2; } S_un_w;
15 u_long S_addr;
16 } S_un;
17 } IN_ADDR, *PIN_ADDR, *LPIN_ADDR;
19 #define s_addr S_un.S_addr
20 #define s_host S_un.S_un_b.s_b2
21 #define s_net S_un.S_un_b.s_b1
22 #define s_imp S_un.S_un_w.s_w2
23 #define s_impno S_un.S_un_b.s_b4
24 #define s_lh S_un.S_un_b.s_b3
26 #endif /* s_addr */