# HG changeset patch # User reimar # Date 1269898358 0 # Node ID 8bef88bc329d3e4b6437db14ec84e6ebf43e6a1d # Parent 04f5fe406669480a886835974ddc6da9661aa40a Include appropriate header in table generators instead of using a dummy av_cold define. diff -r 04f5fe406669 -r 8bef88bc329d mdct_tablegen.c --- a/mdct_tablegen.c Mon Mar 29 20:58:19 2010 +0000 +++ b/mdct_tablegen.c Mon Mar 29 21:32:38 2010 +0000 @@ -22,7 +22,6 @@ #include #define CONFIG_HARDCODED_TABLES 0 -#define av_cold #define SINETABLE_CONST #define SINETABLE(size) \ float ff_sine_##size[size] diff -r 04f5fe406669 -r 8bef88bc329d mdct_tablegen.h --- a/mdct_tablegen.h Mon Mar 29 20:58:19 2010 +0000 +++ b/mdct_tablegen.h Mon Mar 29 21:32:38 2010 +0000 @@ -24,6 +24,7 @@ // do not use libavutil/mathematics.h since this is compiled both // for the host and the target and config.h is only valid for the target #include +#include "../libavutil/attributes.h" #if !CONFIG_HARDCODED_TABLES SINETABLE( 32); diff -r 04f5fe406669 -r 8bef88bc329d qdm2_tablegen.c --- a/qdm2_tablegen.c Mon Mar 29 20:58:19 2010 +0000 +++ b/qdm2_tablegen.c Mon Mar 29 21:32:38 2010 +0000 @@ -21,7 +21,6 @@ */ #include -#define av_cold #define CONFIG_HARDCODED_TABLES 0 #include "qdm2_tablegen.h" #include "tableprint.h" diff -r 04f5fe406669 -r 8bef88bc329d qdm2_tablegen.h --- a/qdm2_tablegen.h Mon Mar 29 20:58:19 2010 +0000 +++ b/qdm2_tablegen.h Mon Mar 29 21:32:38 2010 +0000 @@ -25,6 +25,7 @@ #include #include +#include "../libavutil/attributes.h" #define SOFTCLIP_THRESHOLD 27600 #define HARDCLIP_THRESHOLD 35716