Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: src/processor/minidump.cc

Issue 1353893002: Fix MSVC build (including on 2015), drop some workarounds for MSVC older than 2013. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 37
38 #include <assert.h> 38 #include <assert.h>
39 #include <fcntl.h> 39 #include <fcntl.h>
40 #include <stddef.h> 40 #include <stddef.h>
41 #include <stdio.h> 41 #include <stdio.h>
42 #include <string.h> 42 #include <string.h>
43 #include <time.h> 43 #include <time.h>
44 44
45 #ifdef _WIN32 45 #ifdef _WIN32
46 #include <io.h> 46 #include <io.h>
47 #define PRIx64 "llx" 47 #if defined(_MSC_VER) && _MSC_VER < 1900
48 #define PRIx32 "lx"
49 #define snprintf _snprintf 48 #define snprintf _snprintf
49 #endif
50 #else // _WIN32 50 #else // _WIN32
51 #include <unistd.h> 51 #include <unistd.h>
52 #endif // _WIN32 52 #endif // _WIN32
53 53
54 #include <fstream> 54 #include <fstream>
55 #include <iostream> 55 #include <iostream>
56 #include <limits> 56 #include <limits>
57 #include <map> 57 #include <map>
58 #include <vector> 58 #include <vector>
59 59
(...skipping 4729 matching lines...) Expand 10 before | Expand all | Expand 10 after
4789 return NULL; 4789 return NULL;
4790 } 4790 }
4791 4791
4792 *stream = new_stream.release(); 4792 *stream = new_stream.release();
4793 info->stream = *stream; 4793 info->stream = *stream;
4794 return *stream; 4794 return *stream;
4795 } 4795 }
4796 4796
4797 4797
4798 } // namespace google_breakpad 4798 } // namespace google_breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698