OLD | NEW |
1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 // | 31 // |
32 // See dump_context.h for documentation. | 32 // See dump_context.h for documentation. |
33 | 33 |
34 #include "google_breakpad/processor/dump_context.h" | 34 #include "google_breakpad/processor/dump_context.h" |
35 | 35 |
36 #include <assert.h> | 36 #include <assert.h> |
37 #include <stdio.h> | 37 #include <stdio.h> |
38 | 38 |
39 #ifdef _WIN32 | 39 #ifdef _WIN32 |
40 #include <io.h> | 40 #include <io.h> |
41 #define PRIx64 "llx" | 41 #if defined(_MSC_VER) && _MSC_VER < 1900 |
42 #define PRIx32 "lx" | |
43 #define snprintf _snprintf | 42 #define snprintf _snprintf |
| 43 #endif |
44 #else // _WIN32 | 44 #else // _WIN32 |
45 #include <unistd.h> | 45 #include <unistd.h> |
46 #endif // _WIN32 | 46 #endif // _WIN32 |
47 | 47 |
48 #include "processor/logging.h" | 48 #include "processor/logging.h" |
49 | 49 |
50 namespace google_breakpad { | 50 namespace google_breakpad { |
51 | 51 |
52 DumpContext::DumpContext() : context_(), | 52 DumpContext::DumpContext() : context_(), |
53 context_flags_(0) { } | 53 context_flags_(0) { } |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 break; | 648 break; |
649 } | 649 } |
650 | 650 |
651 default: { | 651 default: { |
652 break; | 652 break; |
653 } | 653 } |
654 } | 654 } |
655 } | 655 } |
656 | 656 |
657 } // namespace google_breakpad | 657 } // namespace google_breakpad |
OLD | NEW |