VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/inaddr.h@ 96080

最後變更 在這個檔案從96080是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1/*
2 * Copyright 2010 Detlef Riekenberg
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 *
18 */
19
20/*
21 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
22 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
23 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
24 * a choice of LGPL license versions is made available with the language indicating
25 * that LGPLv2 or any later version may be used, or where a choice of which version
26 * of the LGPL is applied is otherwise unspecified.
27 */
28
29#ifndef __INADDR_H__
30#define __INADDR_H__
31
32#ifdef USE_WS_PREFIX
33#define WS(x) WS_##x
34#else
35#define WS(x) x
36#endif
37
38typedef struct WS(in_addr)
39{
40 union {
41 struct {
42 UCHAR s_b1,s_b2,s_b3,s_b4;
43 } S_un_b;
44 struct {
45 USHORT s_w1,s_w2;
46 } S_un_w;
47 ULONG S_addr;
48 } S_un;
49} IN_ADDR, *PIN_ADDR, *LPIN_ADDR;
50
51#undef WS
52
53#ifndef USE_WS_PREFIX
54#define s_addr S_un.S_addr
55#define s_net S_un.S_un_b.s_b1
56#define s_host S_un.S_un_b.s_b2
57#define s_lh S_un.S_un_b.s_b3
58#define s_impno S_un.S_un_b.s_b4
59#define s_imp S_un.S_un_w.s_w2
60#else
61#define WS_s_addr S_un.S_addr
62#define WS_s_net S_un.S_un_b.s_b1
63#define WS_s_host S_un.S_un_b.s_b2
64#define WS_s_lh S_un.S_un_b.s_b3
65#define WS_s_impno S_un.S_un_b.s_b4
66#define WS_s_imp S_un.S_un_w.s_w2
67#endif /* USE_WS_PREFIX */
68
69#endif /* __INADDR_H__ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette