comparison ppc/check_altivec.c @ 11407:fb94047e23d2 libavcodec

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.
author mstorsjo
date Mon, 08 Mar 2010 15:12:36 +0000
parents 50415a8f1451
children 7dd2a45249a9
comparison
equal deleted inserted replaced
11406:fe7a77f77927 11407:fb94047e23d2
20 /** 20 /**
21 * @file libavcodec/ppc/check_altivec.c 21 * @file libavcodec/ppc/check_altivec.c
22 * Checks for AltiVec presence. 22 * Checks for AltiVec presence.
23 */ 23 */
24 24
25 #include "config.h"
26 #include "dsputil_altivec.h"
27
28 #ifdef __APPLE__ 25 #ifdef __APPLE__
29 #undef _POSIX_C_SOURCE 26 #undef _POSIX_C_SOURCE
30 #include <sys/sysctl.h> 27 #include <sys/sysctl.h>
31 #elif defined(__OpenBSD__) 28 #elif defined(__OpenBSD__)
32 #include <sys/param.h> 29 #include <sys/param.h>
35 #elif defined(__AMIGAOS4__) 32 #elif defined(__AMIGAOS4__)
36 #include <exec/exec.h> 33 #include <exec/exec.h>
37 #include <interfaces/exec.h> 34 #include <interfaces/exec.h>
38 #include <proto/exec.h> 35 #include <proto/exec.h>
39 #endif /* __APPLE__ */ 36 #endif /* __APPLE__ */
37
38 #include "config.h"
39 #include "dsputil_altivec.h"
40 40
41 /** 41 /**
42 * This function MAY rely on signal() or fork() in order to make sure AltiVec 42 * This function MAY rely on signal() or fork() in order to make sure AltiVec
43 * is present. 43 * is present.
44 */ 44 */