commit | 1bfedbd04122c0e177caf693423aabad3462d66d | [log] [tgz] |
---|---|---|
author | Jack Palevich <[email protected]> | Wed Jun 24 17:43:54 2009 -0700 |
committer | Jack Palevich <[email protected]> | Wed Jun 24 17:43:54 2009 -0700 |
tree | df7ef1c47b8d2f87ac43c8e004b4415eeb1166e7 | |
parent | ed4cbb766a2d83f71c03b1b327d696e7b56377a6 [diff] |
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.