Add stub for 'atoi'.
authorBill Wendling <isanbard@gmail.com>
Mon, 28 May 2012 09:58:27 +0000 (09:58 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 May 2012 09:58:27 +0000 (09:58 +0000)
llvm-svn: 157573

compiler-rt/SDKs/darwin/usr/include/stdlib.h
compiler-rt/SDKs/linux/usr/include/stdlib.h

index cf65df4..c18c2e4 100644 (file)
@@ -22,6 +22,7 @@
 typedef __SIZE_TYPE__ size_t;
 
 void abort(void) __attribute__((__noreturn__));
+int atoi(const char *);
 void free(void *);
 char *getenv(const char *);
 void *malloc(size_t);
index b3755df..2fe745a 100644 (file)
@@ -22,6 +22,7 @@
 typedef __SIZE_TYPE__ size_t;
 
 void abort(void) __attribute__((__nothrow__)) __attribute__((__noreturn__));
+void atoi(const char *) __attribute__((__nothrow__));
 void free(void *) __attribute__((__nothrow__));
 char *getenv(const char *) __attribute__((__nothrow__))
   __attribute__((__nonnull__(1)));