Fix warnings on FreeBSD
[oweals/cde.git] / cde / programs / ttsnoop / messageProps_stubs.C.src
index 213bbc49b2c361fc48b86b6a3d28a4c455739549..e759859cdb7c9384ce41de7d837e479853dd4bfd 100644 (file)
@@ -21,6 +21,7 @@
  *  ** DELETE THE GENERATED COMMENTS!                                 **
  */
 
+#include <stdint.h>
 #include <stdio.h>
 #include <Xm/Xm.h>
 #include "dtb_utils.h"
@@ -40,7 +41,7 @@
  *** Add include files, types, macros, externs, and user functions here.
  ***/
 
-#if defined(linux) || defined(CSRG_BASED) || defined(sun)
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
 #include <strstream>
 #else
 #include <strstream.h>
@@ -119,7 +120,7 @@ _DtTtMessageSetUpdating(
 )
 {
        tt_message_user_set( msg, (int) (long) _DtTtMessageUpdating,
-                            (void *)updating );
+                            (void *) (intptr_t)updating );
 }
 
 typedef enum {