VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/X11/Xwinsock.h@ 17236

Last change on this file since 17236 was 17236, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Reverted r43555 and r43556

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/* $Xorg: Xwinsock.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
2/*
3
4Copyright 1996, 1998 The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included
13in all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
17ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL-
19ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall
24not be used in advertising or otherwise to promote the sale, use or
25other dealings in this Software without prior written authorization from
26The Open Group.
27
28*/
29
30/*
31 * This header file has for sole purpose to allow to include winsock.h
32 * without getting any name conflicts with our code.
33 * Conflicts come from the fact that including winsock.h actually pulls
34 * in the whole Windows API...
35 */
36
37#undef _XFree86Server
38#ifdef XFree86Server
39#define _XFree86Server
40#undef XFree86Server
41#endif
42
43#define BOOL wBOOL
44#define INT32 wINT32
45#undef Status
46#define Status wStatus
47#define ATOM wATOM
48#define BYTE wBYTE
49#define FreeResource wFreeResource
50#include <winsock.h>
51#undef Status
52#define Status int
53#undef BYTE
54#undef BOOL
55#undef INT32
56#undef ATOM
57#undef FreeResource
58#undef CreateWindowA
59#undef RT_FONT
60#undef RT_CURSOR
61
62#ifdef _XFree86Server
63#define XFree86Server
64#undef _XFree86Server
65#endif
66
Note: See TracBrowser for help on using the repository browser.

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