summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/include/android-base/stringprintf.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/base/include/android-base/stringprintf.h b/base/include/android-base/stringprintf.h
index 1fd6297fd..517e69e17 100644
--- a/base/include/android-base/stringprintf.h
+++ b/base/include/android-base/stringprintf.h
@@ -24,17 +24,8 @@ namespace android {
24namespace base { 24namespace base {
25 25
26// These printf-like functions are implemented in terms of vsnprintf, so they 26// These printf-like functions are implemented in terms of vsnprintf, so they
27// use the same attribute for compile-time format string checking. On Windows, 27// use the same attribute for compile-time format string checking.
28// if the mingw version of vsnprintf is used, use `gnu_printf' which allows z
29// in %zd and PRIu64 (and related) to be recognized by the compile-time
30// checking.
31#define ANDROID_BASE_FORMAT_ARCHETYPE __printf__ 28#define ANDROID_BASE_FORMAT_ARCHETYPE __printf__
32#ifdef __USE_MINGW_ANSI_STDIO
33#if __USE_MINGW_ANSI_STDIO
34#undef ANDROID_BASE_FORMAT_ARCHETYPE
35#define ANDROID_BASE_FORMAT_ARCHETYPE gnu_printf
36#endif
37#endif
38 29
39// Returns a string corresponding to printf-like formatting of the arguments. 30// Returns a string corresponding to printf-like formatting of the arguments.
40std::string StringPrintf(const char* fmt, ...) 31std::string StringPrintf(const char* fmt, ...)