On Wed, 02 Mar 2011, Víctor Paesa wrote:

> Hi,
> 
> In 1.7.7, log2f() is defined in math.h as
> 
> extern float log2f _PARAMS((float));
> #if !defined(__cplusplus)
> #define log2f(x) (logf (x) / (float) _M_LOG2_E)
> #endif
> 
> In 1.7.8, log2f() is defined in math.h as
> 
> extern float log2f _PARAMS((float));
> #if !defined(__cplusplus)
> #define log2f(x) (logf (x) / (float_t) _M_LOG2_E)
> #endif
> 
> This change broke the compilation of ffmpeg.
> 
> Would it be possible to use again "float", instead of "float_t" ?

Why? Fix ffmpeg instead. #include <math.h> should suffice:

...
#if !defined(__STRICT_ANSI__) || defined(__cplusplus) || __STDC_VERSION__ >= 
199901L

/* ISO C99 types and macros. */

#ifndef FLT_EVAL_METHOD
#define FLT_EVAL_METHOD 0
typedef float float_t;
typedef double double_t;
#endif /* FLT_EVAL_METHOD */
...

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to