diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-20 09:40:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-20 12:06:06 +0300 |
commit | cfc8d80f2cee778022359ee2354a523970a06fdf (patch) | |
tree | e315957cc5118f7ecad19cd162d6d828b899ab12 /source/blender/imbuf/intern/IMB_anim.h | |
parent | b30ab24fb823b83256fe981843069a1d73c5bbb8 (diff) |
ImBuf: Solve re-definition warnings
The idea now is to have FFmpeg/OIIO headers listed after
the system ones. This is because FFmpeg/OIIO might define
some constants with the same name as the ones from math.h.
FFmpeg/OIIO has ifdef around defines, but math.h doesn't
check whether constants were already defined or not, which
causes some noisy warnings.
Diffstat (limited to 'source/blender/imbuf/intern/IMB_anim.h')
-rw-r--r-- | source/blender/imbuf/intern/IMB_anim.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/imbuf/intern/IMB_anim.h b/source/blender/imbuf/intern/IMB_anim.h index 537cde9ac5c..f4763883489 100644 --- a/source/blender/imbuf/intern/IMB_anim.h +++ b/source/blender/imbuf/intern/IMB_anim.h @@ -72,18 +72,16 @@ # endif /* _WIN32 || __APPLE__ */ #endif /* WITH_QUICKTIME */ -#ifdef WITH_FFMPEG -# include <libavformat/avformat.h> -# include <libavcodec/avcodec.h> -# include <libswscale/swscale.h> -#endif - #include "IMB_imbuf_types.h" #include "IMB_imbuf.h" #include "IMB_allocimbuf.h" - +#ifdef WITH_FFMPEG +# include <libavformat/avformat.h> +# include <libavcodec/avcodec.h> +# include <libswscale/swscale.h> +#endif /* actually hard coded endianness */ #define GET_BIG_LONG(x) (((uchar *) (x))[0] << 24 | ((uchar *) (x))[1] << 16 | ((uchar *) (x))[2] << 8 | ((uchar *) (x))[3]) |