]> granicus.if.org Git - clang/commitdiff
Include <stdlib.h>, so that we're sure to get atoi.
authorDouglas Gregor <dgregor@apple.com>
Tue, 2 Feb 2010 17:49:52 +0000 (17:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 2 Feb 2010 17:49:52 +0000 (17:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95095 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ABITest/ABITestGen.py

index 63da02bcda9df5269f576b12a37bd6fe9fa8753f..a31f01043c35d439fe1d36909988f07d931f6c6a 100755 (executable)
@@ -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]);'