diff options
author | Jack Palevich <jackpal@google.com> | 2009-06-24 17:43:54 -0700 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2009-06-24 17:43:54 -0700 |
commit | 1bfedbd04122c0e177caf693423aabad3462d66d (patch) | |
tree | df7ef1c47b8d2f87ac43c8e004b4415eeb1166e7 | |
parent | ed4cbb766a2d83f71c03b1b327d696e7b56377a6 (diff) | |
download | srec-donut.tar.gz |
Include cstdio so that this header file can compile with gcc 4.4.android-sdk-tools_r2android-sdk-1.6_r2android-sdk-1.6_r1android-sdk-1.6-docs_r1android-1.6_r2android-1.6_r1.5android-1.6_r1.4android-1.6_r1.3android-1.6_r1.2android-1.6_r1.1android-1.6_r1donut-release2donut-releasedonut
Otherwise printf is undeclared. This code 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
is an error. The fix is backwards compatible with earlier versions of
GCC.
Note, I'm using "GCC" to mean Gnu Compile Collection, as this problem is
specific to the C++ compiler, not the C compiler.
-rw-r--r-- | tools/grxmlcompile/netw_arc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/grxmlcompile/netw_arc.h b/tools/grxmlcompile/netw_arc.h index ed591de..e1d297e 100644 --- a/tools/grxmlcompile/netw_arc.h +++ b/tools/grxmlcompile/netw_arc.h @@ -23,7 +23,7 @@ #undef assert #define assert(X) - +#include <cstdio> class GRXMLDoc; class NUANArc |