Author: tkreuzer Date: Fri May 13 20:21:58 2011 New Revision: 51713
URL: http://svn.reactos.org/svn/reactos?rev=51713&view=rev Log: [CRT] Merge r51273 from cmake branch: The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not
Modified: trunk/reactos/lib/sdk/crt/string/atol.c
Modified: trunk/reactos/lib/sdk/crt/string/atol.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/atol.c?r... ============================================================================== --- trunk/reactos/lib/sdk/crt/string/atol.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/string/atol.c [iso-8859-1] Fri May 13 20:21:58 2011 @@ -1,14 +1,17 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include <stdlib.h> -#include <tchar.h>
/* * @implemented */ -long -_ttol(const _TCHAR *str) +long atol(const char *str) { - return (long)_ttoi64(str); + return (long)_atoi64(str); +} + +long _wtol(const wchar_t *str) +{ + return (long)_wtoi64(str); }
int _atoldbl(_LDOUBLE *value, char *str) @@ -16,4 +19,4 @@ /* FIXME needs error checking for huge/small values */ //*value = strtold(str,0); return -1; -} +}