Jacek Caban : port.h: Added NAN macro.

Alexandre Julliard julliard at winehq.org
Tue May 29 13:58:03 CDT 2012


Module: wine
Branch: master
Commit: 91b89133a9cdb8938416cd6c558e71df44f71ecc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=91b89133a9cdb8938416cd6c558e71df44f71ecc

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue May 29 12:53:38 2012 +0200

port.h: Added NAN macro.

---

 include/wine/port.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index 8281653..705716e 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -199,6 +199,15 @@ struct statvfs
 #define M_PI_2 1.570796326794896619
 #endif
 
+#ifndef NAN
+static float inline __port_nan(void)
+{
+    static const unsigned __nan_bytes = 0x7fc00000;
+    return *(const float *)&__nan_bytes;
+}
+#define NAN __port_nan()
+#endif
+
 
 /****************************************************************
  * Function definitions (only when using libwine_port)




More information about the wine-cvs mailing list