From e3df2697c3470b64b51eea094867b23bf386a930 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 12 Mar 2012 08:46:53 +0000 Subject: [PATCH] Commit patch from Shane Ambler to make VideoTexture compile with a clang on FreeBSD. Thanks! --- source/gameengine/VideoTexture/VideoFFmpeg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/gameengine/VideoTexture/VideoFFmpeg.h b/source/gameengine/VideoTexture/VideoFFmpeg.h index 1c07bc957f3..40b2658eb42 100644 --- a/source/gameengine/VideoTexture/VideoFFmpeg.h +++ b/source/gameengine/VideoTexture/VideoFFmpeg.h @@ -28,6 +28,10 @@ http://www.gnu.org/copyleft/lesser.txt. #define __VIDEOFFMPEG_H__ #ifdef WITH_FFMPEG +#if defined(__FreeBSD__) +/* this needs to be parsed with __cplusplus defined before included through ffmpeg_compat.h */ +#include +#endif extern "C" { #undef __cplusplus #include