* IDCT function itself was to factor out the partial transposition, and to
* perform a full transpose at the end of the function. */
+#include "config.h"
+
#include <stdlib.h>
#include <string.h>
-#include "config.h"
-#if HAVE_ALTIVEC_H
-#include <altivec.h>
-#endif
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/ppc/cpu.h"
-#include "libavutil/ppc/types_altivec.h"
+#include "libavutil/ppc/util_altivec.h"
+
#include "libavcodec/idctdsp.h"
#if HAVE_ALTIVEC