diff --git a/libavcodec/mdct_tablegen.c b/libavcodec/mdct_tablegen.c index f04502f181..a6b13c345b 100644 --- a/libavcodec/mdct_tablegen.c +++ b/libavcodec/mdct_tablegen.c @@ -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 --git a/libavcodec/mdct_tablegen.h b/libavcodec/mdct_tablegen.h index af652e7457..1722c3b4d0 100644 --- a/libavcodec/mdct_tablegen.h +++ b/libavcodec/mdct_tablegen.h @@ -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 --git a/libavcodec/qdm2_tablegen.c b/libavcodec/qdm2_tablegen.c index b311e7f4db..d23493c741 100644 --- a/libavcodec/qdm2_tablegen.c +++ b/libavcodec/qdm2_tablegen.c @@ -21,7 +21,6 @@ */ #include -#define av_cold #define CONFIG_HARDCODED_TABLES 0 #include "qdm2_tablegen.h" #include "tableprint.h" diff --git a/libavcodec/qdm2_tablegen.h b/libavcodec/qdm2_tablegen.h index 83d8c2d095..de9ff0c902 100644 --- a/libavcodec/qdm2_tablegen.h +++ b/libavcodec/qdm2_tablegen.h @@ -25,6 +25,7 @@ #include #include +#include "../libavutil/attributes.h" #define SOFTCLIP_THRESHOLD 27600 #define HARDCLIP_THRESHOLD 35716