[PATCH] msvcrt: Implement nan

Piotr Caban piotr.caban at gmail.com
Mon Jan 16 10:22:46 CST 2017


On 01/14/17 00:11, Daniel Lehman wrote:
> +double CDECL MSVCR120_nan(const char *tagp)
> +{
> +    /* Windows ignores input (MSDN) and Linux crashes on NULL */
> +    const char *dummy = "NAN";
> +#ifdef HAVE_NAN
> +    return nan(dummy);
> +#else
> +    return strtod(dummy, NULL);
> +#endif
> +}
Why can't you just "return NAN;" here?

Thanks,
Piotr



More information about the wine-devel mailing list