OSDN Git Service

Include cstdio so that this header file can compile with gcc 4.4.
authorJack Palevich <jackpal@google.com>
Thu, 25 Jun 2009 00:43:54 +0000 (17:43 -0700)
committerJack Palevich <jackpal@google.com>
Thu, 25 Jun 2009 00:43:54 +0000 (17:43 -0700)
commit1bfedbd04122c0e177caf693423aabad3462d66d
treedf7ef1c47b8d2f87ac43c8e004b4415eeb1166e7
parented4cbb766a2d83f71c03b1b327d696e7b56377a6
Include cstdio so that this header file can compile with gcc 4.4.

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.
tools/grxmlcompile/netw_arc.h