aboutsummaryrefslogtreecommitdiff
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
commitc6277a0a42f7fc4f1b5df6fb83c0af2f14245e9b (patch)
treeb9bc7ab741925815ba7d66f2f4d5afec1cb0f8f2
parent99c952046600f6bfccf315aa7ad5b1be2d242cc3 (diff)
Include <stdlib.h>, so that we're sure to get atoi.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95095 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ABITest/ABITestGen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ABITest/ABITestGen.py b/utils/ABITest/ABITestGen.py
index 63da02bcda..a31f01043c 100755
--- a/utils/ABITest/ABITestGen.py
+++ b/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]);'