[Motiftools-xmt-cvs] CVS: xmt/Xmt ExtWidgets.c,1.9,1.10
Brought to you by:
motiftools
|
From: Grant M. <grm...@us...> - 2003-10-25 00:44:09
|
Update of /cvsroot/motiftools/xmt/Xmt
In directory sc8-pr-cvs1:/tmp/cvs-serv8387
Modified Files:
ExtWidgets.c
Log Message:
Clean up some warnings
Index: ExtWidgets.c
===================================================================
RCS file: /cvsroot/motiftools/xmt/Xmt/ExtWidgets.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** ExtWidgets.c 14 Aug 2003 02:17:24 -0000 1.9
--- ExtWidgets.c 25 Oct 2003 00:41:09 -0000 1.10
***************
*** 12,15 ****
--- 12,18 ----
*
* $Log$
+ * Revision 1.10 2003/10/25 00:41:09 grmcdorman
+ * Clean up some warnings
+ *
* Revision 1.9 2003/08/14 02:17:24 grmcdorman
* New XmtExtLabelSetPixmap function
***************
*** 71,74 ****
--- 74,84 ----
#endif
+ /* not all versions of Motif declare this */
+ #ifdef _NO_PROTO
+ extern _XmString _XmStringCreate();
+ #else
+ extern _XmString _XmStringCreate(XmString cs);
+ #endif
+
#ifndef max
# define max(a, b) ((a) > (b) ? (a) : (b))
***************
*** 1143,1147 ****
int eventBase, errorBase;
! if (XtIsRealized(lw)) {
// Don't crash if Shape doesn't exist on the server.
if (XShapeQueryExtension(lw->core.screen->display, &eventBase, &errorBase)) {
--- 1153,1157 ----
int eventBase, errorBase;
! if (XtIsRealized((Widget) lw)) {
// Don't crash if Shape doesn't exist on the server.
if (XShapeQueryExtension(lw->core.screen->display, &eventBase, &errorBase)) {
|