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

Unified Diff: src/pdf/SkPDFTypes.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 | « src/core/SkString.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFTypes.cpp
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index e80d1186c38dc3e507604dd239e8570eec3653b0..87964c3e57defe0f4eaa7c0b2bfd5a569a0cd611 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -10,7 +10,7 @@
#include "SkPDFTypes.h"
#include "SkStream.h"
-#ifdef SK_BUILD_FOR_WIN
+#if defined(_MSC_VER) && _MSC_VER < 1900
#define SNPRINTF _snprintf
#else
#define SNPRINTF snprintf
« no previous file with comments | « src/core/SkString.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698