[FFmpeg-cvslog] r22327 - trunk/libavcodec/ppc/check_altivec.c

mstorsjo subversion
Mon Mar 8 16:12:36 CET 2010


Author: mstorsjo
Date: Mon Mar  8 16:12:36 2010
New Revision: 22327

Log:
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.

Modified:
   trunk/libavcodec/ppc/check_altivec.c

Modified: trunk/libavcodec/ppc/check_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/check_altivec.c	Mon Mar  8 14:13:18 2010	(r22326)
+++ trunk/libavcodec/ppc/check_altivec.c	Mon Mar  8 16:12:36 2010	(r22327)
@@ -22,9 +22,6 @@
  * Checks for AltiVec presence.
  */
 
-#include "config.h"
-#include "dsputil_altivec.h"
-
 #ifdef __APPLE__
 #undef _POSIX_C_SOURCE
 #include <sys/sysctl.h>
@@ -38,6 +35,9 @@
 #include <proto/exec.h>
 #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.



More information about the ffmpeg-cvslog mailing list