Commit 37631cf6 authored by Philip Carns's avatar Philip Carns

fix broken fallback definitions of PRId64 and PRIu64


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@414 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 0e23ed7c
...@@ -14,13 +14,27 @@ ...@@ -14,13 +14,27 @@
#include <inttypes.h> #include <inttypes.h>
#endif #endif
#if !defined PRId64 || PRI_MACROS_BROKEN #if !defined PRId64 || defined(PRI_MACROS_BROKEN)
#ifndef __WORDSIZE
#error failed to detect PRId64 or word size
#endif
# undef PRId64 # undef PRId64
# define PRId64 (sizeof (long) == 8 ? "ld" : "lld") #if __WORDSIZE == 64
# define PRId64 "ld"
#else
# define PRId64 "lld"
#endif
#endif
#if !defined PRIu64 || defined(PRI_MACROS_BROKEN)
#ifndef __WORDSIZE
#error failed to detect PRId64 or word size
#endif #endif
#if !defined PRIu64 || PRI_MACROS_BROKEN
# undef PRIu64 # undef PRIu64
# define PRIu64 (sizeof (long) == 8 ? "lu" : "llu") #if __WORDSIZE == 64
# define PRIu64 "lu"
#else
# define PRIu64 "llu"
#endif
#endif #endif
/* update this on file format changes */ /* update this on file format changes */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment