# HG changeset patch # User mru # Date 1249867647 0 # Node ID 839b4855bb03550e9197d4f50196a145e0369768 # Parent 58d118a78f6d0ecad9bc2424eaddcfa2f3e4f830 Define INFINITIY and NAN in mathematics.h if missing diff -r 58d118a78f6d -r 839b4855bb03 mathematics.h --- a/mathematics.h Thu Jul 30 21:58:43 2009 +0000 +++ b/mathematics.h Mon Aug 10 01:27:27 2009 +0000 @@ -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.