stdlib.h: Provide strtold as an inline wrapper.

This allows using long double in the declaration, which fixes
-Wincompatible-library-redeclaration.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-05-21 01:46:03 +02:00 committed by Alexandre Julliard
parent a326a00f2f
commit 4f40ffb9c5
1 changed files with 5 additions and 1 deletions

View File

@ -211,7 +211,6 @@ void* __cdecl realloc(void*,size_t);
void __cdecl srand(unsigned int);
float __cdecl strtof(const char*,char**);
double __cdecl strtod(const char*,char**);
double __cdecl strtold(const char*,char**);
__msvcrt_long __cdecl strtol(const char*,char**,int);
__msvcrt_ulong __cdecl strtoul(const char*,char**,int);
__int64 __cdecl strtoll_l(const char*,char**,int,_locale_t);
@ -232,6 +231,11 @@ _ACRTIMP _invalid_parameter_handler __cdecl _set_thread_local_invalid_parameter_
void __cdecl _invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file,
unsigned int line, uintptr_t arg);
#ifdef _UCRT
_ACRTIMP double __cdecl _strtold_l(const char*,char**,_locale_t);
static inline long double strtold(const char *string, char **endptr) { return _strtold_l(string, endptr, NULL); }
#endif /* _UCRT */
#ifdef __cplusplus
}
#endif