Make libXmx compile without warnings
Aparently it was sufficient to include some headers and fix one type signature.
This commit is contained in:
@@ -51,6 +51,11 @@
|
||||
* Comments and questions are welcome and can be sent to *
|
||||
* mosaic-x@ncsa.uiuc.edu. *
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <Xm/RepType.h>
|
||||
|
||||
#include "../config.h"
|
||||
#include "XmxP.h"
|
||||
|
||||
@@ -134,8 +139,8 @@ XmxExtractToken (int cd)
|
||||
/* This function should be called by every Xmx routine
|
||||
when registering a callback or event handler. */
|
||||
/* This is PRIVATE but accessible to Xmx2.c also. */
|
||||
int
|
||||
_XmxMakeClientData (int token)
|
||||
uintptr_t
|
||||
_XmxMakeClientData (uintptr_t token)
|
||||
{
|
||||
if (Xmx_uniqid_has_been_set)
|
||||
return ((Xmx_uniqid << 16) | token);
|
||||
|
@@ -51,6 +51,8 @@
|
||||
* Comments and questions are welcome and can be sent to *
|
||||
* mosaic-x@ncsa.uiuc.edu. *
|
||||
****************************************************************************/
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../config.h"
|
||||
#include "XmxP.h"
|
||||
|
||||
|
@@ -57,6 +57,8 @@
|
||||
|
||||
/* System includes. */
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* Here are some nasty ifdef's to make SGI's weird header files happy -DXP */
|
||||
|
||||
#ifdef __sgi
|
||||
@@ -132,7 +134,7 @@
|
||||
#endif /* if 0 */
|
||||
|
||||
/* Prototypes for internal routines found in Xmx.c. */
|
||||
extern int _XmxMakeClientData (int);
|
||||
extern uintptr_t _XmxMakeClientData (uintptr_t);
|
||||
|
||||
/* Marc's defines. */
|
||||
#undef private
|
||||
|
Reference in New Issue
Block a user