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

Unified Diff: src/core/SkString.cpp

Issue 1051273004: Avoid defining snprintf when MSVC provides it Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkString.cpp
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp
index b43351599f114c0d7f0b3a1d2e179e3a26b3bca1..216cfeb0bd090cd00bf1cc9a3a968f8fb308b05f 100644
--- a/src/core/SkString.cpp
+++ b/src/core/SkString.cpp
@@ -17,7 +17,7 @@
// number of bytes (on the stack) to receive the printf result
static const size_t kBufferSize = 1024;
-#ifdef SK_BUILD_FOR_WIN
+#if defined(_MSC_VER) && _MSC_VER < 1900
#define VSNPRINTF(buffer, size, format, args) \
_vsnprintf_s(buffer, size, _TRUNCATE, format, args)
#define SNPRINTF _snprintf
« no previous file with comments | « no previous file | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698