diff options
Diffstat (limited to 'src/google_breakpad')
-rw-r--r-- | src/google_breakpad/common/breakpad_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/google_breakpad/common/breakpad_types.h b/src/google_breakpad/common/breakpad_types.h index 8911557c..a66434f6 100644 --- a/src/google_breakpad/common/breakpad_types.h +++ b/src/google_breakpad/common/breakpad_types.h @@ -43,6 +43,8 @@ #ifndef _WIN32 #include <sys/types.h> +#define __STDC_FORMAT_MACROS +#include <inttypes.h> #if defined(__SUNPRO_CC) || (defined(__GNUC__) && defined(__sun__)) typedef uint8_t u_int8_t; @@ -69,4 +71,11 @@ typedef struct { typedef u_int64_t breakpad_time_t; +/* Try to get PRIx64 from inttypes.h, but if it's not defined, fall back to + * llx, which is the format string for "long long" - this is a 64-bit + * integral type on many systems. */ +#ifndef PRIx64 +#define PRIx64 "llx" +#endif /* !PRIx64 */ + #endif /* GOOGLE_BREAKPAD_COMMON_BREAKPAD_TYPES_H__ */ |