summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-06-24 17:43:54 -0700
committerJack Palevich <jackpal@google.com>2009-06-24 17:43:54 -0700
commit1bfedbd04122c0e177caf693423aabad3462d66d (patch)
treedf7ef1c47b8d2f87ac43c8e004b4415eeb1166e7
parented4cbb766a2d83f71c03b1b327d696e7b56377a6 (diff)
downloadsrec-donut.tar.gz
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.h2
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