summaryrefslogtreecommitdiffstats
path: root/include/GL/vms_x_fix.h
diff options
context:
space:
mode:
authorJouk Jansen <[email protected]>2000-08-22 13:31:00 +0000
committerJouk Jansen <[email protected]>2000-08-22 13:31:00 +0000
commitb5b5c52034840dbfcd3f76a9e7cde8b379e7d517 (patch)
treefdb77903d8a0bb01e28e5e465b1e751136723692 /include/GL/vms_x_fix.h
parentf4f4dab25a6c52d403a0b19ab28b443cda8f5730 (diff)
Committing in .
Modified Files: Mesa/include/GL/glx.h Mesa/include/GL/xmesa.h Mesa/src/descrip.mms Mesa/src/X/glxheader.h Mesa/src/X/xfonts.c Mesa/src/X/xfonts.h Mesa/src-glu/descrip.mms Mesa/src-glut/capturexfont.c Mesa/src-glut/descrip.mms Mesa/src-glut/glut_cmap.c Mesa/src-glut/glut_event.c Mesa/src-glut/glut_fullscrn.c Mesa/src-glut/glut_gamemode.c Mesa/src-glut/glut_init.c Mesa/src-glut/glut_input.c Mesa/src-glut/glut_menu.c Mesa/src-glut/glut_menu2.c Mesa/src-glut/glut_overlay.c Mesa/src-glut/glut_win.c Mesa/src-glut/glut_winmisc.c Mesa/src-glut/glutint.h Mesa/src-glut/layerutil.h Mesa/vms/analyze_map.com Added Files: Mesa/include/GL/vms_x_fix.h Patches effective on VMS only. This allows for compiling with /name=(as_is,short). This breaks the binary compatibility with previous versions for VMS, but is the only way to combine Mesa with GTK for VMS. Jouk ----------------------------------------------------------------------
Diffstat (limited to 'include/GL/vms_x_fix.h')
-rw-r--r--include/GL/vms_x_fix.h43
1 files changed, 43 insertions, 0 deletions
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