[MPlayer-cvslog] r27485 - in trunk/liba52: bitstream.h liba52_changes.diff
diego
subversion at mplayerhq.hu
Tue Aug 26 23:29:54 CEST 2008
Author: diego
Date: Tue Aug 26 23:29:54 2008
New Revision: 27485
Log:
Rename always_inline macro to av_always_inline so as not to clash with
with __attribute__((always_inline)) declarations.
This fixes the build on Mac OS X 10.4.11.
Modified:
trunk/liba52/bitstream.h
trunk/liba52/liba52_changes.diff
Modified: trunk/liba52/bitstream.h
==============================================================================
--- trunk/liba52/bitstream.h (original)
+++ trunk/liba52/bitstream.h Tue Aug 26 23:29:54 2008
@@ -27,9 +27,9 @@
/* code from ffmpeg/libavcodec */
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC_ == 3 && __GNUC_MINOR__ > 0)
-# define always_inline __attribute__((always_inline)) inline
+# define av_always_inline __attribute__((always_inline)) inline
#else
-# define always_inline inline
+# define av_always_inline inline
#endif
#if defined(__sparc__) || defined(hpux)
@@ -47,7 +47,7 @@
# define unaligned32(a) (*(uint32_t*)(a))
#else
# ifdef __GNUC__
-static always_inline uint32_t unaligned32(const void *v) {
+static av_always_inline uint32_t unaligned32(const void *v) {
struct Unaligned {
uint32_t i;
} __attribute__((packed));
@@ -86,7 +86,7 @@ static inline uint32_t unaligned32(const
# else
# define swab32(x) __generic_swab32(x)
- static always_inline const uint32_t __generic_swab32(uint32_t x)
+ static av_always_inline const uint32_t __generic_swab32(uint32_t x)
{
return ((((uint8_t*)&x)[0] << 24) | (((uint8_t*)&x)[1] << 16) |
(((uint8_t*)&x)[2] << 8) | (((uint8_t*)&x)[3]));
Modified: trunk/liba52/liba52_changes.diff
==============================================================================
--- trunk/liba52/liba52_changes.diff (original)
+++ trunk/liba52/liba52_changes.diff Tue Aug 26 23:29:54 2008
@@ -81,9 +81,9 @@
+/* code from ffmpeg/libavcodec */
+#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC_ == 3 && __GNUC_MINOR__ > 0)
-+# define always_inline __attribute__((always_inline)) inline
++# define av_always_inline __attribute__((always_inline)) inline
+#else
-+# define always_inline inline
++# define av_always_inline inline
+#endif
+
+#if defined(__sparc__) || defined(hpux)
@@ -101,7 +101,7 @@
+# define unaligned32(a) (*(uint32_t*)(a))
+#else
+# ifdef __GNUC__
-+static always_inline uint32_t unaligned32(const void *v) {
++static av_always_inline uint32_t unaligned32(const void *v) {
+ struct Unaligned {
+ uint32_t i;
+ } __attribute__((packed));
@@ -142,7 +142,7 @@
- (((uint8_t*)&x)[2] << 8) | (((uint8_t*)&x)[3]))
-
+# define swab32(x) __generic_swab32(x)
-+ static always_inline const uint32_t __generic_swab32(uint32_t x)
++ static av_always_inline const uint32_t __generic_swab32(uint32_t x)
+ {
+ return ((((uint8_t*)&x)[0] << 24) | (((uint8_t*)&x)[1] << 16) |
+ (((uint8_t*)&x)[2] << 8) | (((uint8_t*)&x)[3]));
More information about the MPlayer-cvslog
mailing list