# HG changeset patch # User mstorsjo # Date 1268061156 0 # Node ID fb94047e23d2f1dc8783073d802d494debeac534 # Parent fe7a77f77927bcc4bdb5fdf18ef548691e2e636a Move the local includes below the system includes This fixes a compilation issue on OS X 10.4, where some system headers were included implicitly through dsputil_altivec.h (with _POSIX_C_SOURCE defined), and other system headers included later, with _POSIX_C_SOURCE undefined at that time. diff -r fe7a77f77927 -r fb94047e23d2 ppc/check_altivec.c --- a/ppc/check_altivec.c Mon Mar 08 12:58:22 2010 +0000 +++ b/ppc/check_altivec.c Mon Mar 08 15:12:36 2010 +0000 @@ -22,9 +22,6 @@ * Checks for AltiVec presence. */ -#include "config.h" -#include "dsputil_altivec.h" - #ifdef __APPLE__ #undef _POSIX_C_SOURCE #include @@ -38,6 +35,9 @@ #include #endif /* __APPLE__ */ +#include "config.h" +#include "dsputil_altivec.h" + /** * This function MAY rely on signal() or fork() in order to make sure AltiVec * is present.