Include appropriate header in table generators instead of using a dummy
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 29 Mar 2010 21:32:38 +0000 (21:32 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 29 Mar 2010 21:32:38 +0000 (21:32 +0000)
av_cold define.

Originally committed as revision 22723 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mdct_tablegen.c
libavcodec/mdct_tablegen.h
libavcodec/qdm2_tablegen.c
libavcodec/qdm2_tablegen.h

index f04502f..a6b13c3 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <stdlib.h>
 #define CONFIG_HARDCODED_TABLES 0
-#define av_cold
 #define SINETABLE_CONST
 #define SINETABLE(size) \
     float ff_sine_##size[size]
index af652e7..1722c3b 100644 (file)
@@ -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 <math.h>
+#include "../libavutil/attributes.h"
 
 #if !CONFIG_HARDCODED_TABLES
 SINETABLE(  32);
index b311e7f..d23493c 100644 (file)
@@ -21,7 +21,6 @@
  */
 
 #include <stdlib.h>
-#define av_cold
 #define CONFIG_HARDCODED_TABLES 0
 #include "qdm2_tablegen.h"
 #include "tableprint.h"
index 83d8c2d..de9ff0c 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <stdint.h>
 #include <math.h>
+#include "../libavutil/attributes.h"
 
 #define SOFTCLIP_THRESHOLD 27600
 #define HARDCLIP_THRESHOLD 35716