bdb087c9305d6d753444e1c0176a793c00f07840 |
|
25-Jun-2009 |
Jack Palevich <jackpal@google.com> |
Add includes to enable host C++ tools to compile with GCC 4.4 Otherwise printf is undeclared. These files worked with earlier versions of gcc because either cstdio or stdio.h was being included by some other header file. But this was not guaranteed behavior, so with GCC 4.4 there are errors. The fix is backwards compatible with earlier versions of GCC. This change includes either <cstdio> or <stdio.h> whichever looks more appropriate given the other headers included by the given source file. Note, I'm using "GCC" to mean Gnu Compile Collection, as this problem is specific to C++ source files. (Presumably a C++-specific header file changed to no longer include cstdio.)
/frameworks/base/tools/localize/merge_res_and_xliff.cpp
|