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

Side by Side 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: Add include Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/libphonenumber/cpp/src/default_logger.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff -Naur src-orig/default_logger.h src/default_logger.h
2 --- src-orig/default_logger.h 2011-07-02 16:27:58.000000000 -0700
3 +++ src/default_logger.h 2011-07-02 16:28:29.000000000 -0700
4 @@ -17,6 +17,8 @@
5 #ifndef I18N_PHONENUMBERS_DEFAULT_LOGGER_H_
6 #define I18N_PHONENUMBERS_DEFAULT_LOGGER_H_
7
8 +#include <stdio.h>
9 +
10 #include <string>
11
12 #include "logger.h"
13 @@ -45,7 +47,7 @@
14 struct ConvertToString<int> {
15 static inline string DoWork(const int& n) {
16 char buffer[16];
17 - std::snprintf(buffer, sizeof(buffer), "%d", n);
18 + snprintf(buffer, sizeof(buffer), "%d", n);
19 return string(buffer);
20 }
21 };
OLDNEW
« no previous file with comments | « third_party/libphonenumber/cpp/src/default_logger.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698