Trouble in compiling Wine 0.9.57 and 0.9.58 on Solaris 10 08/07

Petr Sumbera Petr.Sumbera at Sun.COM
Fri Apr 18 08:21:00 CDT 2008


Alexandre Julliard wrote:
> Petr Sumbera <Petr.Sumbera at Sun.COM> writes:
> 
>> Well, we have only one isinf call in Wine so I think it isn't worst of
>> creating Wine special isinf implementation. Instead I propose emulate
>> isinf via finite() and isnand() (both coming from ieeefp.h).
> 
> You should still put that in libwine_port, it keeps the #ifdef ugliness
> out of the code.
> 

What about defining isinf as macro?

diff --git a/include/wine/port.h b/include/wine/port.h
index 6727891..59c12aa 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -146,6 +146,11 @@ struct statvfs
  #define strtoull _strtoui64
  #endif

+#if !defined(HAVE_ISINF) && defined(HAVE_IEEEFP_H)
+#include <ieeefp.h>
+#define isinf(x) (!(finite(x) || isnand(x)))
+#endif
+
  #ifndef S_ISLNK
  # define S_ISLNK(mod) (0)
  #endif


---

BTW, I would maybe question also existence of float_32_to_16() in header 
  file too.

Petr



More information about the wine-devel mailing list