浏览代码

Correct atoi()

Peter S. Mazinger 19 年之前
父节点
当前提交
5f22f458db
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      libc/stdlib/stdlib.c

+ 2 - 1
libc/stdlib/stdlib.c

@@ -267,7 +267,8 @@ int atoi(const char *nptr)
 {
 {
 	return (int) strtol(nptr, (char **) NULL, 10);
 	return (int) strtol(nptr, (char **) NULL, 10);
 }
 }
-strong_alias(__atoi,atoi)
+libc_hidden_proto(atoi)
+libc_hidden_def(atoi)
 
 
 #endif /* INT_MAX < LONG_MAX  */
 #endif /* INT_MAX < LONG_MAX  */