Thomas Faber : port.h: Add INFINITY macro.
Alexandre Julliard
julliard at winehq.org
Mon Jun 18 15:00:24 CDT 2012
Module: wine
Branch: master
Commit: cb8af0152c97082503d38de2a498727df2feed77
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb8af0152c97082503d38de2a498727df2feed77
Author: Thomas Faber <thfabba at gmx.de>
Date: Sun Jun 17 15:59:25 2012 +0200
port.h: Add INFINITY 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 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)
{
More information about the wine-cvs
mailing list