[x264-devel] Eliminate warning due to isfinite redefiniton on OpenBSD.

Brad brad at comstyle.com
Tue Jan 27 08:11:42 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().

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
--- common/osdep.h.orig	Mon Sep  1 16:45:08 2008
+++ common/osdep.h	Mon Sep  1 21:08:50 2008
@@ -51,7 +51,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)


More information about the x264-devel mailing list