diff options
author | Pavel Labath <labath@google.com> | 2016-01-19 21:28:44 -0500 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2016-01-19 21:28:44 -0500 |
commit | 48673cdb8c0c1e9eb137c7a68583b5e5898a54eb (patch) | |
tree | b2f921fce6dff6b898f6ca23468bc05f00e93354 /src/processor/dump_context.cc | |
parent | breakpad: fix unittest failure when building with clang. (diff) | |
download | breakpad-48673cdb8c0c1e9eb137c7a68583b5e5898a54eb.tar.xz |
Fix usage of snprintf for MSVC
Older versions of MSVC don't have a snprintf functions. Some files
were already working around that, but not all of them. Instead of
copying the logic into every file, I centralize it into a new
stdio.h wrapper file and make other files include that.
BUG=
R=mark@chromium.org
Review URL: https://codereview.chromium.org/1602563003 .
Patch from Pavel Labath <labath@google.com>.
Diffstat (limited to 'src/processor/dump_context.cc')
-rw-r--r-- | src/processor/dump_context.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/processor/dump_context.cc b/src/processor/dump_context.cc index 49fb77b1..1c10b955 100644 --- a/src/processor/dump_context.cc +++ b/src/processor/dump_context.cc @@ -34,17 +34,14 @@ #include "google_breakpad/processor/dump_context.h" #include <assert.h> -#include <stdio.h> #ifdef _WIN32 #include <io.h> -#if defined(_MSC_VER) && _MSC_VER < 1900 -#define snprintf _snprintf -#endif #else // _WIN32 #include <unistd.h> #endif // _WIN32 +#include "common/stdio.h" #include "processor/logging.h" namespace google_breakpad { |