j
k
j a
j l
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 +}
+double CDECL MSVCR120_nan(const char *tagp) +{
+#ifdef HAVE_NAN
+#else
+#endif +}
Why can't you just "return NAN;" here?
Thanks, Piotr
Show replies by date
I was following the pattern of forwarding for other math functions and the man page for nan
But returning NAN is simpler. I'll submit a new patch
wine-devel@winehq.org
Add to favorites Remove from favorites