delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 3 Mar 2011 00:03:02 +0100 |
From: | Matthias Andree <matthias DOT andree AT gmx DOT de> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: log2f() in 1.7.8 |
Message-ID: | <20110302230302.GA30778@merlin.emma.line.org> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <AANLkTinS9ebq65=XxpEtRbCFSeQnjC3j2QXKzZv9QGU7 AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <AANLkTinS9ebq65=XxpEtRbCFSeQnjC3j2QXKzZv9QGU7@mail.gmail.com> |
X-PGP-Key: | http://home.pages.de/~mandree/keys/GPGKEY.asc |
User-Agent: | Mutt/1.5.21 (2010-12-30) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |