summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-02 17:49:52 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-02 17:49:52 +0000
commitefbaf99dca6c714e4a9edf1b5da4fe1d5a580d06 (patch)
treebc0692133d3a91316cab98c85acb8b75c271d2f9 /clang
parentafe6a840d4ad4695bc25db9e99376678e1dd42ec (diff)
downloadbcm5719-llvm-efbaf99dca6c714e4a9edf1b5da4fe1d5a580d06.tar.gz
bcm5719-llvm-efbaf99dca6c714e4a9edf1b5da4fe1d5a580d06.zip
Include <stdlib.h>, so that we're sure to get atoi.
llvm-svn: 95095
Diffstat (limited to 'clang')
-rwxr-xr-xclang/utils/ABITest/ABITestGen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/utils/ABITest/ABITestGen.py b/clang/utils/ABITest/ABITestGen.py
index 63da02bcda9..a31f01043c3 100755
--- a/clang/utils/ABITest/ABITestGen.py
+++ b/clang/utils/ABITest/ABITestGen.py
@@ -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]);'
OpenPOWER on IntegriCloud