Fix warnings on FreeBSD
[oweals/cde.git] / cde / programs / ttsnoop / patternProps_stubs.C.src
index dd08b3b93deb601647930ca3d0c68daa861daffc..4ae300ccb708ed13e3c9eb00d1aec722cd7403d6 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>
@@ -82,7 +83,7 @@ _DtTtPatternSetUpdating(
 )
 {
        tt_pattern_user_set( pat, (int) (long) _DtTtPatternUpdating,
-                            (void *)updating );
+                            (void *) (intptr_t) updating );
 }
 
 void