| /* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved. | |
| Distributed by Free Software Foundation, Inc. | |
| This file is part of Ghostscript. | |
| Ghostscript is distributed in the hope that it will be useful, but | |
| WITHOUT ANY WARRANTY. No author or distributor accepts responsibility | |
| to anyone for the consequences of using it or for whether it serves any | |
| particular purpose or works at all, unless he says so in writing. Refer | |
| to the Ghostscript General Public License for full details. | |
| Everyone is granted permission to copy, modify and redistribute | |
| Ghostscript, but only under the conditions described in the Ghostscript | |
| General Public License. A copy of this license is supposed to have been | |
| given to you along with Ghostscript so you can know your rights and | |
| responsibilities. It should be in a file named COPYING. Among other | |
| things, the copyright notice and this notice must be preserved on all | |
| copies. */ | |
| /* gdevx.h */ | |
| /* Header for including X library calls in Ghostscript X11 driver */ | |
| #ifdef VMS | |
| # ifdef __GNUC__ | |
| /* Names of external functions which contain upper case letters are | |
| * modified by the VMS GNU C compiler to prevent confusion between | |
| * names such as XOpen and xopen. GNU C does this by translating a | |
| * name like XOpen into xopen_aaaaaaaax with "aaaaaaaa" a hexadecimal | |
| * string. However, this causes problems when we link against the | |
| * X library which doesn't contain a routine named xopen_aaaaaaaax. | |
| * So, we use #define's to map all X routine names to lower case. | |
| * (Note that routines like BlackPixelOfScreen, which are [for VMS] | |
| * preprocessor macros, do not appear here.) | |
| */ | |
| /* | |
| * The names redefined here are those which the current Ghostscript X11 | |
| * driver happens to use: this list may grow in the future. | |
| */ | |
| # define XAllocColor xalloccolor | |
| # define XAllocNamedColor xallocnamedcolor | |
| # define XChangeProperty xchangeproperty | |
| # define XCloseDisplay xclosedisplay | |
| # define XCopyArea xcopyarea | |
| # define XCreateGC xcreategc | |
| # define XCreatePixmap xcreatepixmap | |
| # define XCreateWindow xcreatewindow | |
| # define XDisplayString xdisplaystring | |
| # define XDrawLine xdrawline | |
| # define XFillPolygon xfillpolygon | |
| # define XFillRectangles xfillrectangles | |
| # define XFillRectangle xfillrectangle | |
| # define XFlush xflush | |
| # define XFreeGC xfreegc | |
| # define XFreePixmap xfreepixmap | |
| # define XGeometry xgeometry | |
| # define XGetDefault xgetdefault | |
| # define XMapWindow xmapwindow | |
| # define XNextEvent xnextevent | |
| # define XOpenDisplay xopendisplay | |
| # define XPutImage xputimage | |
| # define XSetBackground xsetbackground | |
| # define XSetClipMask xsetclipmask | |
| # define XSetClipOrigin xsetcliporigin | |
| # define XSetFillStyle xsetfillstyle | |
| # define XSetForeground xsetforeground | |
| # define XSetFunction xsetfunction | |
| # define XSetLineAttributes xsetlineattributes | |
| # define XSetNormalHints xsetnormalhints | |
| # define XSetTile xsettile | |
| # define XSetWindowBackgroundPixmap xsetwindowbackgroundpixmap | |
| # define XSync xsync | |
| # endif /* ifdef __GNUC__ */ | |
| # include <decw$include/Xlib.h> | |
| # include <decw$include/Xatom.h> | |
| # include <decw$include/Xutil.h> | |
| #else /* !ifdef VMS */ | |
| # include <X11/Xlib.h> | |
| # include <X11/Xatom.h> | |
| # include <X11/Xutil.h> | |
| #endif /* VMS */ |