diff mbox

opensm - use uintptr_t instead of unsigned long

Message ID B4D2EF981C584307AA9204669ECE3F31@amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan Oct. 8, 2009, 5:12 p.m. UTC
None
diff mbox

Patch

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