]> git.saurik.com Git - apple/libc.git/blame - stdlib/FreeBSD/atoll.c.patch
Libc-763.13.tar.gz
[apple/libc.git] / stdlib / FreeBSD / atoll.c.patch
CommitLineData
1f2f436a
A
1--- atoll.c.bsdnew 2009-11-13 14:11:47.000000000 -0800
2+++ atoll.c 2009-11-13 14:11:47.000000000 -0800
3@@ -30,11 +30,22 @@
3d9156a7 4 #include <sys/cdefs.h>
1f2f436a 5 __FBSDID("$FreeBSD: src/lib/libc/stdlib/atoll.c,v 1.5 2007/01/09 00:28:09 imp Exp $");
3d9156a7
A
6
7+#include "xlocale_private.h"
8+
9 #include <stdlib.h>
10
11 long long
12 atoll(str)
13 const char *str;
14 {
15- return strtoll(str, (char **)NULL, 10);
16+ return strtoll_l(str, (char **)NULL, 10, __current_locale());
17+}
18+
19+long long
20+atoll_l(str, loc)
21+ const char *str;
22+ locale_t loc;
23+{
24+ /* no need to call NORMALIZE_LOCALE(loc) because strtoll_l will */
25+ return strtoll_l(str, (char **)NULL, 10, loc);
26 }