105b261ecSmrg/* 205b261ecSmrg 305b261ecSmrgCopyright (c) 1995 X Consortium 405b261ecSmrg 505b261ecSmrgPermission is hereby granted, free of charge, to any person obtaining 605b261ecSmrga copy of this software and associated documentation files (the 705b261ecSmrg"Software"), to deal in the Software without restriction, including 805b261ecSmrgwithout limitation the rights to use, copy, modify, merge, publish, 905b261ecSmrgdistribute, sublicense, and/or sell copies of the Software, and to 1005b261ecSmrgpermit persons to whom the Software is furnished to do so, subject to 1105b261ecSmrgthe following conditions: 1205b261ecSmrg 1305b261ecSmrgThe above copyright notice and this permission notice shall be included 1405b261ecSmrgin all copies or substantial portions of the Software. 1505b261ecSmrg 1605b261ecSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1705b261ecSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1805b261ecSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1905b261ecSmrgIN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR 2005b261ecSmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2105b261ecSmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2205b261ecSmrgOTHER DEALINGS IN THE SOFTWARE. 2305b261ecSmrg 2405b261ecSmrgExcept as contained in this notice, the name of the X Consortium shall 2505b261ecSmrgnot be used in advertising or otherwise to promote the sale, use or 2605b261ecSmrgother dealings in this Software without prior written authorization 2705b261ecSmrgfrom the X Consortium. 2805b261ecSmrg 2905b261ecSmrg*/ 3005b261ecSmrg 3135c4bbdfSmrg/* 3205b261ecSmrg** Machines with a 64 bit library interface and a 32 bit server require 3305b261ecSmrg** name changes to protect the guilty. 3405b261ecSmrg*/ 3505b261ecSmrg#ifdef _XSERVER64 3605b261ecSmrg#define _XSERVER64_tmp 3705b261ecSmrg#undef _XSERVER64 3805b261ecSmrgtypedef unsigned long XID64; 3905b261ecSmrgtypedef unsigned long Mask64; 4005b261ecSmrgtypedef unsigned long Atom64; 4105b261ecSmrgtypedef unsigned long VisualID64; 4205b261ecSmrgtypedef unsigned long Time64; 4335c4bbdfSmrg 4405b261ecSmrg#define XID XID64 4505b261ecSmrg#define Mask Mask64 4605b261ecSmrg#define Atom Atom64 4705b261ecSmrg#define VisualID VisualID64 4805b261ecSmrg#define Time Time64 4905b261ecSmrgtypedef XID Window64; 5005b261ecSmrgtypedef XID Drawable64; 5105b261ecSmrgtypedef XID Font64; 5205b261ecSmrgtypedef XID Pixmap64; 5305b261ecSmrgtypedef XID Cursor64; 5405b261ecSmrgtypedef XID Colormap64; 5505b261ecSmrgtypedef XID GContext64; 5605b261ecSmrgtypedef XID KeySym64; 5735c4bbdfSmrg 5805b261ecSmrg#define Window Window64 5905b261ecSmrg#define Drawable Drawable64 6005b261ecSmrg#define Font Font64 6105b261ecSmrg#define Pixmap Pixmap64 6205b261ecSmrg#define Cursor Cursor64 6305b261ecSmrg#define Colormap Colormap64 6405b261ecSmrg#define GContext GContext64 6505b261ecSmrg#define KeySym KeySym64 6605b261ecSmrg#endif /*_XSERVER64*/ 6705b261ecSmrg 6805b261ecSmrg#define GC XlibGC 6905b261ecSmrg#include <X11/Xlib.h> 7005b261ecSmrg#include <X11/Xutil.h> 7105b261ecSmrg#include <X11/extensions/shape.h> 7205b261ecSmrg#undef GC 7305b261ecSmrg 7405b261ecSmrg#ifdef _XSERVER64_tmp 7505b261ecSmrg#define _XSERVER64 7605b261ecSmrg#undef _XSERVER64_tmp 7705b261ecSmrg#undef XID 7805b261ecSmrg#undef Mask 7905b261ecSmrg#undef Atom 8005b261ecSmrg#undef VisualID 8105b261ecSmrg#undef Time 8205b261ecSmrg#undef Window 8305b261ecSmrg#undef Drawable 8405b261ecSmrg#undef Font 8505b261ecSmrg#undef Pixmap 8605b261ecSmrg#undef Cursor 8705b261ecSmrg#undef Colormap 8805b261ecSmrg#undef GContext 8905b261ecSmrg#undef KeySym 9005b261ecSmrg#endif /*_XSERVER64_tmp*/ 91