forked from OSchip/llvm-project
Include <stdlib.h>, so that we're sure to get atoi.
llvm-svn: 95095
This commit is contained in:
parent
afe6a840d4
commit
efbaf99dca
|
@ -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]);'
|
||||
|
|
Loading…
Reference in New Issue