From: Reinhard Tartler Date: Wed, 11 May 2011 11:51:11 +0000 (+0200) Subject: aac: workaround for compilation on cygwin X-Git-Tag: v0.7b2~25 X-Git-Url: https://git.libav.org/?p=libav.git;a=commitdiff_plain;h=083e715f339e4546e9be8a6e265360be87cca517;ds=sidebyside aac: workaround for compilation on cygwin On cygwin, math.h needs to be included before float.h because of a bug in the system headers. Including libavutil/libm.h first works around this issue. Longer discussion of the topic: http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/128582 --- diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index 15fe430732..83d3734089 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -30,13 +30,14 @@ * add sane pulse detection ***********************************/ +#include "libavutil/libm.h" // brought forward to work around cygwin header breakage + #include #include "avcodec.h" #include "put_bits.h" #include "aac.h" #include "aacenc.h" #include "aactab.h" -#include "libavutil/libm.h" /** bits needed to code codebook run value for long windows */ static const uint8_t run_value_bits_long[64] = {