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/logging.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/logging.cc')
-rw-r--r-- | src/processor/logging.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/processor/logging.cc b/src/processor/logging.cc index 8bb95a69..06c5510c 100644 --- a/src/processor/logging.cc +++ b/src/processor/logging.cc @@ -35,20 +35,16 @@ #include <assert.h> #include <errno.h> -#include <stdio.h> #include <string.h> #include <time.h> #include <string> +#include "common/stdio.h" #include "common/using_std_string.h" #include "processor/logging.h" #include "processor/pathname_stripper.h" -#ifdef _WIN32 -#define snprintf _snprintf -#endif - namespace google_breakpad { LogStream::LogStream(std::ostream &stream, Severity severity, |