diff --git a/postproc/swscale.c b/postproc/swscale.c index 891352121c..dbe7203383 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -61,9 +61,6 @@ untested special converters #else #include #endif -#ifdef HAVE_ALTIVEC_H -#include -#endif #include "swscale.h" #include "swscale_internal.h" #include "../cpudetect.h" diff --git a/postproc/swscale_internal.h b/postproc/swscale_internal.h index c6d5a2f974..c7761ee1a4 100644 --- a/postproc/swscale_internal.h +++ b/postproc/swscale_internal.h @@ -19,6 +19,10 @@ #ifndef SWSCALE_INTERNAL_H #define SWSCALE_INTERNAL_H +#ifdef HAVE_ALTIVEC_H +#include +#endif + #include "../mp_msg.h" #define MSG_WARN(args...) mp_msg(MSGT_SWS,MSGL_WARN, ##args )