sizeof unsigned long != sizeof void * in Windows world.

If you can live with uintptr_t for 
  __WORDSIZE == 32 being 'unsigned int' (see stdint.h)
  __WORDSIZE == 64 uintptr_t is 'unsigned long int'
then we could skip the ifdef __GNUC__ and just replace 'unsigned long' with 
uintptr_t.

Stan.

Signed-off-by: stan smith <[email protected]>

diff --git a/opensm/include/opensm/st.h b/opensm/include/opensm/st.h
index 30cc308..dd7eacc 100644
--- a/opensm/include/opensm/st.h
+++ b/opensm/include/opensm/st.h
@@ -49,7 +49,11 @@
 #endif                         /* __cplusplus */
 
 BEGIN_C_DECLS
+#ifdef __GNUC__
 #define st_ptr_t unsigned long
+#else
+#define st_ptr_t uintptr_t
+#endif
 typedef st_ptr_t st_data_t;
 
 #define ST_DATA_T_DEFINED

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to