mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 09:20:30 +00:00
[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 svn path=/trunk/; revision=51713
This commit is contained in:
parent
e37a4989a1
commit
fb553406c9
1 changed files with 8 additions and 5 deletions
|
@ -1,14 +1,17 @@
|
||||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <tchar.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
long
|
long atol(const char *str)
|
||||||
_ttol(const _TCHAR *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)
|
int _atoldbl(_LDOUBLE *value, char *str)
|
||||||
|
@ -16,4 +19,4 @@ int _atoldbl(_LDOUBLE *value, char *str)
|
||||||
/* FIXME needs error checking for huge/small values */
|
/* FIXME needs error checking for huge/small values */
|
||||||
//*value = strtold(str,0);
|
//*value = strtold(str,0);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
Loading…
Reference in a new issue