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

Unified Diff: third_party/libphonenumber/patches/version277a.patch

Issue 7277083: [libphonenumber] snprintf isn't generally in the std:: namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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
Index: third_party/libphonenumber/patches/version277a.patch
diff --git a/third_party/libphonenumber/patches/version277a.patch b/third_party/libphonenumber/patches/version277a.patch
new file mode 100644
index 0000000000000000000000000000000000000000..f018520d3f11bbd6ea1cbbc956e5769019155e35
--- /dev/null
+++ b/third_party/libphonenumber/patches/version277a.patch
@@ -0,0 +1,12 @@
+diff -Naur src-orig/default_logger.h src/default_logger.h
+--- src-orig/default_logger.h 2011-07-02 16:14:09.000000000 -0700
++++ src/default_logger.h 2011-07-02 16:10:27.000000000 -0700
+@@ -45,7 +45,7 @@
+ struct ConvertToString<int> {
+ static inline string DoWork(const int& n) {
+ char buffer[16];
+- std::snprintf(buffer, sizeof(buffer), "%d", n);
++ snprintf(buffer, sizeof(buffer), "%d", n);
+ return string(buffer);
+ }
+ };

Powered by Google App Engine
This is Rietveld 408576698