add printf format for sigar_uint64_t

This commit is contained in:
Doug MacEachern 2007-11-04 18:30:03 +00:00
parent 5d0057b8cc
commit f02c9bbe1a
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@ extern "C" {
#define SIGAR_64BIT #define SIGAR_64BIT
#endif #endif
/* for printf sigar_uint64_t */
#ifdef SIGAR_64BIT
# define SIGAR_F_U64 "%lu"
#else
# define SIGAR_F_U64 "%Lu"
#endif
#if defined(WIN32) #if defined(WIN32)
typedef unsigned __int32 sigar_uint32_t; typedef unsigned __int32 sigar_uint32_t;