Commit | Line | Data |
---|---|---|
a09e091a JB |
1 | /* |
2 | ||
3 | Copyright (c) 1995 X Consortium | |
4 | ||
5 | Permission is hereby granted, free of charge, to any person obtaining | |
6 | a copy of this software and associated documentation files (the | |
7 | "Software"), to deal in the Software without restriction, including | |
8 | without limitation the rights to use, copy, modify, merge, publish, | |
9 | distribute, sublicense, and/or sell copies of the Software, and to | |
10 | permit persons to whom the Software is furnished to do so, subject to | |
11 | the following conditions: | |
12 | ||
13 | The above copyright notice and this permission notice shall be included | |
14 | in all copies or substantial portions of the Software. | |
15 | ||
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
17 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
19 | IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
22 | OTHER DEALINGS IN THE SOFTWARE. | |
23 | ||
24 | Except as contained in this notice, the name of the X Consortium shall | |
25 | not be used in advertising or otherwise to promote the sale, use or | |
26 | other dealings in this Software without prior written authorization | |
27 | from the X Consortium. | |
28 | ||
29 | */ | |
30 | ||
31 | /* | |
32 | ** Machines with a 64 bit library interface and a 32 bit server require | |
33 | ** name changes to protect the guilty. | |
34 | */ | |
35 | #ifdef _XSERVER64 | |
36 | #define _XSERVER64_tmp | |
37 | #undef _XSERVER64 | |
38 | typedef unsigned long XID64; | |
39 | typedef unsigned long Mask64; | |
40 | typedef unsigned long Atom64; | |
41 | typedef unsigned long VisualID64; | |
42 | typedef unsigned long Time64; | |
43 | ||
44 | #define XID XID64 | |
45 | #define Mask Mask64 | |
46 | #define Atom Atom64 | |
47 | #define VisualID VisualID64 | |
48 | #define Time Time64 | |
49 | typedef XID Window64; | |
50 | typedef XID Drawable64; | |
51 | typedef XID Font64; | |
52 | typedef XID Pixmap64; | |
53 | typedef XID Cursor64; | |
54 | typedef XID Colormap64; | |
55 | typedef XID GContext64; | |
56 | typedef XID KeySym64; | |
57 | ||
58 | #define Window Window64 | |
59 | #define Drawable Drawable64 | |
60 | #define Font Font64 | |
61 | #define Pixmap Pixmap64 | |
62 | #define Cursor Cursor64 | |
63 | #define Colormap Colormap64 | |
64 | #define GContext GContext64 | |
65 | #define KeySym KeySym64 | |
66 | #endif /*_XSERVER64*/ | |
67 | ||
68 | #define GC XlibGC | |
69 | #include <X11/Xlib.h> | |
70 | #include <X11/Xutil.h> | |
71 | #include <X11/extensions/shape.h> | |
72 | #undef GC | |
73 | ||
74 | #ifdef _XSERVER64_tmp | |
75 | #define _XSERVER64 | |
76 | #undef _XSERVER64_tmp | |
77 | #undef XID | |
78 | #undef Mask | |
79 | #undef Atom | |
80 | #undef VisualID | |
81 | #undef Time | |
82 | #undef Window | |
83 | #undef Drawable | |
84 | #undef Font | |
85 | #undef Pixmap | |
86 | #undef Cursor | |
87 | #undef Colormap | |
88 | #undef GContext | |
89 | #undef KeySym | |
90 | #endif /*_XSERVER64_tmp*/ |