From 48673cdb8c0c1e9eb137c7a68583b5e5898a54eb Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 19 Jan 2016 21:28:44 -0500 Subject: 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 . --- src/processor/dump_context.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/processor/dump_context.cc') 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 -#include #ifdef _WIN32 #include -#if defined(_MSC_VER) && _MSC_VER < 1900 -#define snprintf _snprintf -#endif #else // _WIN32 #include #endif // _WIN32 +#include "common/stdio.h" #include "processor/logging.h" namespace google_breakpad { -- cgit v1.2.1