[FFmpeg-cvslog] float_dsp: Include config.h for redefining restrict

Martin Storsjö git at videolan.org
Wed Jan 23 18:29:51 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Jan 23 11:03:49 2013 +0200| [2e4130037cf3b64921976fbff4579bda0e91dc87] | committer: Martin Storsjö

float_dsp: Include config.h for redefining restrict

This makes sure that the restrict keyword is mapped to whatever
keyword the compiler prefers/supports. This fixes building on MSVC
(and possibly on GCC 2.x as well).

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e4130037cf3b64921976fbff4579bda0e91dc87
---

 libavutil/float_dsp.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/float_dsp.h b/libavutil/float_dsp.h
index f2b90a4..b215dad 100644
--- a/libavutil/float_dsp.h
+++ b/libavutil/float_dsp.h
@@ -19,6 +19,8 @@
 #ifndef AVUTIL_FLOAT_DSP_H
 #define AVUTIL_FLOAT_DSP_H
 
+#include "config.h"
+
 typedef struct AVFloatDSPContext {
     /**
      * Calculate the product of two vectors of floats and store the result in



More information about the ffmpeg-cvslog mailing list