From b98bfc8583628d942554d59d51959c844baefad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 11 Nov 2016 23:32:29 +0000 Subject: [PATCH] [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 --- reactos/dll/win32/msvcrt/msvcrt.spec | 2 +- reactos/sdk/lib/crt/crt.cmake | 1 + reactos/sdk/lib/crt/string/wtof.c | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 reactos/sdk/lib/crt/string/wtof.c diff --git a/reactos/dll/win32/msvcrt/msvcrt.spec b/reactos/dll/win32/msvcrt/msvcrt.spec index 28b9ef2669e..2586559e1d5 100644 --- a/reactos/dll/win32/msvcrt/msvcrt.spec +++ b/reactos/dll/win32/msvcrt/msvcrt.spec @@ -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) diff --git a/reactos/sdk/lib/crt/crt.cmake b/reactos/sdk/lib/crt/crt.cmake index a896a849de3..8de8a670632 100644 --- a/reactos/sdk/lib/crt/crt.cmake +++ b/reactos/sdk/lib/crt/crt.cmake @@ -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 diff --git a/reactos/sdk/lib/crt/string/wtof.c b/reactos/sdk/lib/crt/string/wtof.c new file mode 100644 index 00000000000..5906bac68ea --- /dev/null +++ b/reactos/sdk/lib/crt/string/wtof.c @@ -0,0 +1,10 @@ +#include + +/* + * @implemented + */ +double +_wtof(const wchar_t *str) +{ + return wcstod(str, 0); +}