diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2008-02-25 19:32:00 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2008-02-25 19:32:00 +0000 |
commit | c27cf3e3959189f78fe2de40405987c3f33488ce (patch) | |
tree | 7014e194ce872f38e6dac38172d4d4292bc563c0 /src/google_breakpad | |
parent | issue 238 - missing includes compiling with gcc 4.3. patch by taras glek, r=me (diff) | |
download | breakpad-c27cf3e3959189f78fe2de40405987c3f33488ce.tar.xz |
Use "%" PRIx64 instead of "%llx" (#241). r=bryner
http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/327dc5326077e48d
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@241 4c0a9323-5329-0410-9bdc-e9ce6186880e
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__ */ |