[OpenSM] - Fix PRIx64 definition
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 8 Nov 2005 10:32:44 +0000 (10:32 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 8 Nov 2005 10:32:44 +0000 (10:32 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@148 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/opensm/user/include/opensm/osm_log.h

index 55e1695..869297e 100644 (file)
@@ -69,16 +69,20 @@ BEGIN_C_DECLS
 
 #ifndef PRIx64
 #if __WORDSIZE == 64
-#define __PRI64_PREFIX "l"
-#else
-#define __PRI64_PREFIX "L"
-#endif
+#define PRId64         "I64d"
+#define PRIx64         "I64x"
+#define PRIo64         "I64o"
+#define PRIu64         "I64u"
+#else // __WORDSIZE
+#define PRId64         "I64d"
+#define PRIx64         "I64x"
+#define PRIo64         "I64o"
+#define PRIu64         "I64u"
+
+#endif //__WORDSIZE
+#endif // PRIx64
+
 
-#define PRId64         __PRI64_PREFIX"d"
-#define PRIo64         __PRI64_PREFIX"o"
-#define PRIu64         __PRI64_PREFIX"u"
-#define PRIx64         __PRI64_PREFIX"x"
-#endif
 
 #define LOG_ENTRY_SIZE_MAX             4096
 #define BUF_SIZE                               LOG_ENTRY_SIZE_MAX