1/* 2 3Copyright (c) 1995 X Consortium 4 5Permission is hereby granted, free of charge, to any person obtaining 6a copy of this software and associated documentation files (the 7"Software"), to deal in the Software without restriction, including 8without limitation the rights to use, copy, modify, merge, publish, 9distribute, sublicense, and/or sell copies of the Software, and to 10permit persons to whom the Software is furnished to do so, subject to 11the following conditions: 12 13The above copyright notice and this permission notice shall be included 14in all copies or substantial portions of the Software. 15 16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR 20OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22OTHER DEALINGS IN THE SOFTWARE. 23 24Except as contained in this notice, the name of the X Consortium shall 25not be used in advertising or otherwise to promote the sale, use or 26other dealings in this Software without prior written authorization 27from 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 38typedef unsigned long XID64; 39typedef unsigned long Mask64; 40typedef unsigned long Atom64; 41typedef unsigned long VisualID64; 42typedef unsigned long Time64; 43 44#define XID XID64 45#define Mask Mask64 46#define Atom Atom64 47#define VisualID VisualID64 48#define Time Time64 49typedef XID Window64; 50typedef XID Drawable64; 51typedef XID Font64; 52typedef XID Pixmap64; 53typedef XID Cursor64; 54typedef XID Colormap64; 55typedef XID GContext64; 56typedef 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*/ 91