From bd41c06f185b7ec30396c273cd12b4b95850a323 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Mon, 10 Aug 2009 01:27:27 +0000 Subject: [PATCH] Define INFINITIY and NAN in mathematics.h if missing Originally committed as revision 19611 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mathematics.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 782efcc..cb35910 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -41,6 +41,12 @@ #ifndef M_SQRT1_2 #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ #endif +#ifndef NAN +#define NAN (0.0/0.0) +#endif +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif enum AVRounding { AV_ROUND_ZERO = 0, ///< Round toward zero. -- 2.7.4