From bdb087c9305d6d753444e1c0176a793c00f07840 Mon Sep 17 00:00:00 2001 From: Jack Palevich Date: Wed, 24 Jun 2009 19:01:27 -0700 Subject: 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 or 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.) --- tools/localize/Perforce.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/localize/Perforce.cpp') diff --git a/tools/localize/Perforce.cpp b/tools/localize/Perforce.cpp index 3425668..1c644ed 100644 --- a/tools/localize/Perforce.cpp +++ b/tools/localize/Perforce.cpp @@ -1,6 +1,7 @@ #include "Perforce.h" #include "log.h" #include +#include #include #include #include -- cgit v1.1