Include <stdlib.h>, so that we're sure to get atoi.

llvm-svn: 95095
This commit is contained in:
Douglas Gregor 2010-02-02 17:49:52 +00:00
parent afe6a840d4
commit efbaf99dca
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ class TypePrinter:
print >>f, '#include "%s"\n'%(headerName,)
if self.outputDriver:
print >>self.outputDriver, '#include <stdio.h>\n'
print >>self.outputDriver, '#include <stdio.h>'
print >>self.outputDriver, '#include <stdlib.h>\n'
print >>self.outputDriver, 'int main(int argc, char **argv) {'
print >>self.outputDriver, ' int index = -1;'
print >>self.outputDriver, ' if (argc > 1) index = atoi(argv[1]);'