~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/ppc/gcc_fixes.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
21
 */
22
22
 
23
 
#ifndef _GCC_FIXES_
24
 
#define _GCC_FIXES_
 
23
#ifndef FFMPEG_GCC_FIXES_H
 
24
#define FFMPEG_GCC_FIXES_H
 
25
 
 
26
#include "config.h"
25
27
 
26
28
#ifdef HAVE_ALTIVEC_H
27
29
#include <altivec.h>
28
30
#endif
29
31
 
30
 
#ifdef CONFIG_DARWIN
31
 
# ifndef __MWERKS__
32
 
#  define AVV(x...) (x)
33
 
# else
34
 
#  define AVV
35
 
# endif
36
 
#define REG_v(a) asm ( #a )
37
 
#else
38
 
 
39
 
#define AVV(x...) {x}
40
 
 
41
32
#if (__GNUC__ < 4)
42
33
# define REG_v(a)
43
34
#else
44
35
# define REG_v(a) asm ( #a )
45
36
#endif
46
37
 
47
 
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
 
38
#if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
48
39
 
49
40
/* This code was provided to me by Bartosch Pixa
50
41
 * as a separate header file (broken_mergel.h).
106
97
      ((vector unsigned int) ff_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
107
98
    __altivec_link_error_invalid_argument ())))))))
108
99
 
109
 
#endif
110
 
 
111
 
#endif /* CONFIG_DARWIN */
112
 
 
113
 
#ifndef __MWERKS__
114
 
#define const_vector const vector
115
 
#else
116
 
#define const_vector vector
117
 
#endif
118
 
 
119
 
#endif /* _GCC_FIXES_ */
 
100
#endif /* (__GNUC__ == 3 && __GNUC_MINOR__ < 3) */
 
101
 
 
102
#endif /* FFMPEG_GCC_FIXES_H */