[cfe-commits] r95095 - /cfe/trunk/utils/ABITest/ABITestGen.py
Douglas Gregor
dgregor at apple.com
Tue Feb 2 09:49:52 PST 2010
Author: dgregor
Date: Tue Feb 2 11:49:52 2010
New Revision: 95095
URL: http://llvm.org/viewvc/llvm-project?rev=95095&view=rev
Log:
Include <stdlib.h>, so that we're sure to get atoi.
Modified:
cfe/trunk/utils/ABITest/ABITestGen.py
Modified: cfe/trunk/utils/ABITest/ABITestGen.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ABITest/ABITestGen.py?rev=95095&r1=95094&r2=95095&view=diff
==============================================================================
--- cfe/trunk/utils/ABITest/ABITestGen.py (original)
+++ cfe/trunk/utils/ABITest/ABITestGen.py Tue Feb 2 11:49:52 2010
@@ -42,7 +42,8 @@
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]);'
More information about the cfe-commits
mailing list