commit | ad832859a7ccd7ba44b6f97e0933ab0b413d62b6 | [log] [tgz] |
---|---|---|
author | Andrew Hsieh <andrewhsieh@google.com> | Fri May 09 11:50:45 2014 +0800 |
committer | Andrew Hsieh <andrewhsieh@google.com> | Fri May 09 11:50:45 2014 +0800 |
tree | c223a0233ac0add425e9643eb9cfa4e78a2c955b | |
parent | 8ec42bb203d48e917d8da4d925378b448416d09e [diff] |
Use format(gnu_printf, ...) for windows build with __USE_MINGW_ANSI_STDIO With __USE_MINGW_ANSI_STDIO mingw compiler uses its own replacement printf*/scanf* libraries instead of Microsoft's ones which aren't always C99 compatible. Declare "archetype" of attribute format to gnu_printf because the default "printf" in mingw follows MS standard. One result is that "%z" (a gnu-extension) is accepted w/o warning by mingw compiler Change-Id: I3e92f34e2a1e8d664b4f1f55d450f7c2790671f3