VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/X11/Xwindows.h@ 6202

最後變更 在這個檔案從6202是 6202,由 vboxsync 提交於 17 年 前

re-export x11

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.1 KB
 
1/* $Xorg$ */
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 windows.h
32 * without getting any name conflicts with our code.
33 * Conflicts come from the fact that including windows.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 <windows.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 min
60#undef max
61
62#ifdef RESOURCE_H
63#undef RT_FONT
64#undef RT_CURSOR
65#define RT_FONT ((RESTYPE)4)
66#define RT_CURSOR ((RESTYPE)5)
67#endif
68
69#define sleep(x) Sleep(1000*x)
70
71#if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024)
72#undef PATH_MAX
73#define PATH_MAX 1024
74#endif
75
76#ifdef _XFree86Server
77#define XFree86Server
78#undef _XFree86Server
79#endif
80
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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