Hello,
Kyle Galloway found what seems to be an API incompatibility between
lesstif and openmotif. It seems that in some structures lesstif uses
types that are independent of the platform word size, while in openmotif
the basic types (like long) are used that haven't the same size on i386
and x86_64.
More precisely Lesstif uses types called CARD32 and INT32 for the
members of the PropMwmHints struct, while OpenMotif uses unsigned
longs and longs. Does it makes sense?
I attach the patch from Kyle that solves this issue.
--
Pat
--- lesstif-0.95.0/include/Motif-2.1/Xm/MwmUtil.h 2007-01-05
06:19:42.000000000 -0500
+++ lesstif-0.95.0/include/Motif-2.1/Xm/MwmUtil.h 2007-08-02
15:44:09.000000000 -0400
@@ -33,11 +33,11 @@
#endif
typedef struct {
- CARD32 flags;
- CARD32 functions;
- CARD32 decorations;
- INT32 input_mode;
- CARD32 status;
+ unsigned long flags;
+ unsigned long functions;
+ unsigned long decorations;
+ long input_mode;
+ unsigned long status;
} MotifWmHints, MwmHints;
#define MWM_HINTS_FUNCTIONS (1L << 0)
@@ -100,11 +100,11 @@
* _MWM_HINTS property
*/
typedef struct {
- CARD32 flags;
- CARD32 functions;
- CARD32 decorations;
- INT32 inputMode;
- CARD32 status;
+ unsigned long flags;
+ unsigned long functions;
+ unsigned long decorations;
+ long inputMode;
+ unsigned long status;
} PropMotifWmHints;
typedef PropMotifWmHints PropMwmHints;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Lesstif-discuss mailing list
Lesstif-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss