]> git.saurik.com Git - wxWidgets.git/commitdiff
Committing in .
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Mon, 10 Oct 2005 14:18:40 +0000 (14:18 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Mon, 10 Oct 2005 14:18:40 +0000 (14:18 +0000)
 Small fixes for OpenVMS

 Modified Files:
  wxWidgets/include/wx/vms_x_fix.h
  wxWidgets/src/motif/xmcombo/xmcombo.c
: ----------------------------------------------------------------------

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/vms_x_fix.h
src/motif/xmcombo/xmcombo.c

index 65a43fefad6086ff1b529fa0e618baed28daab8d..7abe9308169d31ed87dcfdfc240c0a3a3c2f448a 100644 (file)
@@ -2,7 +2,7 @@
  *                                                                         *
  * Author : Jouk Jansen (joukj@hrem.stm.tudelft.nl)                        *
  *                                                                         *
- * Last revision : 11 July 2005                                            *
+ * Last revision : 7 October 2005                                          *
  *                                                                         *
  * Repair definitions of Runtime library functions when compiling with     *
  * /name=(as_is) on OpenVMS                                                *
 #define XextAddDisplay XEXTADDDISPLAY
 #define XextFindDisplay XEXTFINDDISPLAY
 #define XextRemoveDisplay XEXTREMOVEDISPLAY
+#define XkbSetDetectableAutoRepeat XKBSETDETECTABLEAUTOREPEAT
 #define XmActivateProtocol XMACTIVATEPROTOCOL
 #define XmAddProtocolCallback XMADDPROTOCOLCALLBACK
 #define XmAddProtocols XMADDPROTOCOLS
 #define xmToggleButtonGadgetClass XMTOGGLEBUTTONGADGETCLASS
 #define xmToggleButtonWidgetClass XMTOGGLEBUTTONWIDGETCLASS
 
-#define SetReqLen(req,n,badlen) \
+#if (__VMS_VER < 80200000) 
+# define SetReqLen(req,n,badlen) \
     if ((req->length + n) > (unsigned)65535) { \
            n = badlen; \
            req->length += n; \
     } else \
        req->length += n
+#endif
 
 #ifdef __cplusplus
 extern "C" {
index 21127c25a6cbfbca61a0f894dbb939a61ca941d3..be780d1fbc25a33bc621e4dcef6dde3b731e7140 100644 (file)
  * Cambridge, MA 02139, USA.
  *
  */
-/* get XmVersion definition */
-#include <Xm/Xm.h>
-
-#if (XmVersion < 2000)
-
 #ifdef __VMS
+/* vms_x_fix.h should be included before any of the X11/Motif headers */
 #include <wx/vms_x_fix.h>
 #undef XtDisplay
 #undef XtScreen
 #undef XtClass
 #endif
 
+/* get XmVersion definition */
+#include <Xm/Xm.h>
+
+#if (XmVersion < 2000)
+
 #include <X11/IntrinsicP.h>
 #include <X11/StringDefs.h>
 #include <X11/cursorfont.h>