msvcrt: Add signbit definition
Zheng Chen
chanchengcc at gmail.com
Sun Mar 22 13:14:49 CDT 2015
- Add signbit definition
Thanks for Piotr's advice.
---
dlls/msvcrt/math.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 155de47..ea5b4e4 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -46,8 +46,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
#endif
#endif
+/* FIXME: Doesnot work with +-NAN and -0. */
#ifndef signbit
-#define signbit(x) 0
+#define signbit(x) ((x) < 0 ? 1 : 0)
#endif
typedef int (CDECL *MSVCRT_matherr_func)(struct MSVCRT__exception *);
--
2.3.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150323/32d1fd42/attachment.html>
More information about the wine-patches
mailing list