altivec.patch 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. http://bugs.gentoo.org/306881
  2. --- configure.in
  3. +++ configure.in
  4. @@ -33,7 +33,12 @@
  5. AC_CHECK_DECLS([MP4Create, MP4MetadataDelete],
  6. AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes,
  7. external_mp4v2=no, -lstdc++),
  8. - external_mp4v2=no, [#include <mp4v2/mp4v2.h>])
  9. + external_mp4v2=no, [
  10. + #if defined(__ALTIVEC__)
  11. + #undef bool
  12. + #endif
  13. + #include <mp4v2/mp4v2.h>
  14. + ])
  15. if test x$external_mp4v2 = xyes; then
  16. AC_MSG_NOTICE([*** Building with external mp4v2 ***])
  17. --- frontend/main.c
  18. +++ frontend/main.c
  19. @@ -30,6 +30,9 @@
  20. #endif
  21. #ifdef HAVE_LIBMP4V2
  22. +#if defined(__ALTIVEC__)
  23. +# undef bool
  24. +#endif
  25. # include <mp4v2/mp4v2.h>
  26. #endif
  27. --- common/mp4v2/mpeg4ip.h
  28. +++ common/mp4v2/mpeg4ip.h
  29. @@ -123,7 +123,6 @@
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. -char *strcasestr(const char *haystack, const char *needle);
  34. #ifdef __cplusplus
  35. }
  36. #endif