diff options
Diffstat (limited to 'include/GL')
-rw-r--r-- | include/GL/glx.h | 3 | ||||
-rw-r--r-- | include/GL/vms_x_fix.h | 43 | ||||
-rw-r--r-- | include/GL/xmesa.h | 6 |
3 files changed, 49 insertions, 3 deletions
diff --git a/include/GL/glx.h b/include/GL/glx.h index c2ae5d35b95..9082c3dcd10 100644 --- a/include/GL/glx.h +++ b/include/GL/glx.h @@ -1,4 +1,4 @@ -/* $Id: glx.h,v 1.22 2000/06/23 17:39:18 brianp Exp $ */ +/* $Id: glx.h,v 1.23 2000/08/22 13:31:00 joukj Exp $ */ /* * Mesa 3-D graphics library @@ -30,6 +30,7 @@ #ifdef __VMS +#include <GL/vms_x_fix.h> # ifdef __cplusplus /* VMS Xlib.h gives problems with C++. * this avoids a bunch of trivial warnings */ diff --git a/include/GL/vms_x_fix.h b/include/GL/vms_x_fix.h new file mode 100644 index 00000000000..6e4fb6806b9 --- /dev/null +++ b/include/GL/vms_x_fix.h @@ -0,0 +1,43 @@ +/*************************************************************************** + * * + * Repair definitions of Xlib when compileing with /name=(as_is) on VMS * + * You'll need the PORTING_LIBRARY (get it from Compaq) installed * + * * + * Author : Jouk Jansen ([email protected]) * + * * + * Last revision : 22 August 2000 * + * * + ***************************************************************************/ + +#ifndef VMS_X_FIX +#define VMS_X_FIX + +#ifdef __cplusplus +#define VMS_BEGIN_C_PLUS_PLUS extern "C" { +#define VMS_END_C_PLUS_PLUS } +#else +#define VMS_BEGIN_C_PLUS_PLUS +#define VMS_END_C_PLUS_PLUS +#endif + +#include <motif_redefines.h> + +#define XQueryFont XQUERYFONT +#define XSetPlaneMask XSETPLANEMASK +#define XChangeKeyboardControl XCHANGEKEYBOARDCONTROL +#define XDestroySubwindows XDESTROYSUBWINDOWS +#define XFreeDeviceList XFREEDEVICELIST +#define XFreeDeviceState XFREEDEVICESTATE +#define XGetExtensionVersion XGETEXTENSIONVERSION +#define XGetRGBColormaps XGETRGBCOLORMAPS +#define XIconifyWindow XICONIFYWINDOW +#define XInstallColormap XINSTALLCOLORMAP +#define XListInputDevices XLISTINPUTDEVICES +#define XLookupKeysym XLOOKUPKEYSYM +#define XOpenDevice XOPENDEVICE +#define XQueryDeviceState XQUERYDEVICESTATE +#define XSelectExtensionEvent XSELECTEXTENSIONEVENT +#define XWarpPointer XWARPPOINTER +#define XmuLookupStandardColormap XMULOOKUPSTANDARDCOLORMAP + +#endif diff --git a/include/GL/xmesa.h b/include/GL/xmesa.h index 0c50b48c7cd..273b83508c7 100644 --- a/include/GL/xmesa.h +++ b/include/GL/xmesa.h @@ -1,4 +1,4 @@ -/* $Id: xmesa.h,v 1.8 2000/05/02 02:30:01 brianp Exp $ */ +/* $Id: xmesa.h,v 1.9 2000/08/22 13:31:01 joukj Exp $ */ /* * Mesa 3-D graphics library @@ -67,12 +67,14 @@ See the demos/xdemo.c and xmesa1.c files for examples. #ifndef XMESA_H #define XMESA_H +#ifdef __VMS +#include <GL/vms_x_fix.h> +#endif #ifdef __cplusplus extern "C" { #endif - #ifdef XFree86Server #include "xmesa_xf86.h" #else |