Merge "Use format(gnu_printf, ...) for windows build with __USE_MINGW_ANSI_STDIO"
This commit is contained in:
commit
7ab32aca56
1 changed files with 8 additions and 0 deletions
|
|
@ -98,7 +98,11 @@ int __android_log_write(int prio, const char *tag, const char *text);
|
||||||
*/
|
*/
|
||||||
int __android_log_print(int prio, const char *tag, const char *fmt, ...)
|
int __android_log_print(int prio, const char *tag, const char *fmt, ...)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
|
#if __USE_MINGW_ANSI_STDIO
|
||||||
|
__attribute__ ((format(gnu_printf, 3, 4)))
|
||||||
|
#else
|
||||||
__attribute__ ((format(printf, 3, 4)))
|
__attribute__ ((format(printf, 3, 4)))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -117,7 +121,11 @@ void __android_log_assert(const char *cond, const char *tag,
|
||||||
const char *fmt, ...)
|
const char *fmt, ...)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
__attribute__ ((noreturn))
|
__attribute__ ((noreturn))
|
||||||
|
#if __USE_MINGW_ANSI_STDIO
|
||||||
|
__attribute__ ((format(gnu_printf, 3, 4)))
|
||||||
|
#else
|
||||||
__attribute__ ((format(printf, 3, 4)))
|
__attribute__ ((format(printf, 3, 4)))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue