diff options
author | mmandlis@chromium.org <mmandlis@chromium.org> | 2014-09-19 16:19:18 +0000 |
---|---|---|
committer | mmandlis@chromium.org <mmandlis@chromium.org> | 2014-09-19 16:19:18 +0000 |
commit | 7a6d769eb157f4a850b19c843182fe7b8f578436 (patch) | |
tree | 0a9352ae8d5a8874a68be877f58ba12dd49ce65e | |
parent | Extend mapping merge to include reserved but unused mappings. (diff) | |
download | breakpad-7a6d769eb157f4a850b19c843182fe7b8f578436.tar.xz |
Add inttypes for windows in dump_context
BUG=https://code.google.com/p/google-breakpad/issues/detail?id=606
R=primiano@chromium.org
Review URL: https://breakpad.appspot.com/6734002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1381 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r-- | src/processor/dump_context.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/processor/dump_context.cc b/src/processor/dump_context.cc index 54bf231e..5f7d5682 100644 --- a/src/processor/dump_context.cc +++ b/src/processor/dump_context.cc @@ -36,6 +36,16 @@ #include <assert.h> #include <stdio.h> +#ifdef _WIN32 +#include <io.h> +#define PRIx64 "llx" +#define PRIx32 "lx" +#define snprintf _snprintf +#else // _WIN32 +#include <unistd.h> +#define O_BINARY 0 +#endif // _WIN32 + #include "processor/logging.h" namespace google_breakpad { |