[MSVCRT]: Implement and export _wtof, based on Wine and existing code; patch by Amine Khaldi.

CORE-12335 #resolve
CORE-9312 #comment Please retest with r73206

svn path=/trunk/; revision=73206
This commit is contained in:
Hermès Bélusca-Maïto 2016-11-11 23:32:29 +00:00
parent ed21369043
commit b98bfc8583
3 changed files with 12 additions and 1 deletions

View file

@ -761,7 +761,7 @@
@ cdecl _wsystem(wstr)
@ cdecl _wtempnam(wstr wstr)
@ cdecl _wtmpnam(ptr)
# @ cdecl _wtof(wstr)
@ cdecl _wtof(wstr)
@ cdecl _wtoi(wstr)
@ cdecl _wtoi64(wstr)
@ cdecl _wtol(wstr)

View file

@ -305,6 +305,7 @@ list(APPEND CRT_SOURCE
string/wcstombs_s.c
string/wcstoul.c
string/wctype.c
string/wtof.c
string/wtoi.c
string/wtoi64.c
string/wtol.c

View file

@ -0,0 +1,10 @@
#include <precomp.h>
/*
* @implemented
*/
double
_wtof(const wchar_t *str)
{
return wcstod(str, 0);
}