[x264-devel] Eliminate warning due to isfinite redefiniton on OpenBSD
Brad
brad at comstyle.com
Sat Jan 17 14:54:47 CET 2009
The last two releases of OpenBSD and anything newer now have the
isfinite() macro in math.h so x264 no longer has to define isfinite()
as using finite().
--- common/osdep.h.orig Wed Jan 7 16:45:07 2009
+++ common/osdep.h Sat Jan 17 05:15:18 2009
@@ -52,7 +52,7 @@
#define X264_VERSION "" // no configure script for msvc
#endif
-#if defined(SYS_OPENBSD) || defined(SYS_SunOS)
+#if (defined(SYS_OPENBSD) && !defined(isfinite)) || defined(SYS_SunOS)
#define isfinite finite
#endif
#if defined(_MSC_VER) || defined(SYS_SunOS) || defined(SYS_MACOSX)
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the x264-devel
mailing list