From c901d41216495533adceb9ecc191d1816b0058da Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba@gmx.de>
Date: Sun, 17 Jun 2012 15:59:25 +0200
Subject: port.h: Add INFINITY macro.

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

diff --git a/include/wine/port.h b/include/wine/port.h
index 4b653c7..9030aab 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 INFINITY
+static inline float __port_infinity(void)
+{
+    static const unsigned __inf_bytes = 0x7f800000;
+    return *(const float *)&__inf_bytes;
+}
+#define INFINITY __port_infinity()
+#endif
+
 #ifndef NAN
 static inline float __port_nan(void)
 {
-- 
1.7.10.msysgit.1
