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

Unified Diff: third_party/libphonenumber/cpp/src/default_logger.h

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, 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
« no previous file with comments | « third_party/libphonenumber/README.chromium ('k') | third_party/libphonenumber/patches/version277a.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libphonenumber/cpp/src/default_logger.h
diff --git a/third_party/libphonenumber/cpp/src/default_logger.h b/third_party/libphonenumber/cpp/src/default_logger.h
index 70ee2f5f88efd87de3ead3026278e8a21b352205..7afee68b5b39a300de1db4e6c2d9976fad5d6635 100644
--- a/third_party/libphonenumber/cpp/src/default_logger.h
+++ b/third_party/libphonenumber/cpp/src/default_logger.h
@@ -17,6 +17,8 @@
#ifndef I18N_PHONENUMBERS_DEFAULT_LOGGER_H_
#define I18N_PHONENUMBERS_DEFAULT_LOGGER_H_
+#include <stdio.h>
+
#include <string>
#include "logger.h"
@@ -48,7 +50,7 @@ struct ConvertToString<int> {
#if defined(OS_WIN)
_itoa_s(n, buffer, sizeof(buffer), 10);
#else
- std::snprintf(buffer, sizeof(buffer), "%d", n);
+ snprintf(buffer, sizeof(buffer), "%d", n);
#endif
return string(buffer);
}
« no previous file with comments | « third_party/libphonenumber/README.chromium ('k') | third_party/libphonenumber/patches/version277a.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698