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); +}