[FFmpeg-cvslog] r23115 - in trunk/libavutil: attributes.h internal.h

michael subversion
Thu May 13 18:30:58 CEST 2010


Author: michael
Date: Thu May 13 18:30:58 2010
New Revision: 23115

Log:
av_alias is an attribute and belongs to attributes.h
also attributes.h is public and external api and can thus not depend
on configure tested compiler support thus this part is removed. A
different solution must be found if this breaks for some compiler
which i hope it does not.

Modified:
   trunk/libavutil/attributes.h
   trunk/libavutil/internal.h

Modified: trunk/libavutil/attributes.h
==============================================================================
--- trunk/libavutil/attributes.h	Thu May 13 18:26:55 2010	(r23114)
+++ trunk/libavutil/attributes.h	Thu May 13 18:30:58 2010	(r23115)
@@ -96,6 +96,14 @@
 #endif
 #endif
 
+#ifndef av_alias
+#if (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3)
+#   define av_alias __attribute__((may_alias))
+#else
+#   define av_alias
+#endif
+#endif
+
 #ifndef av_uninit
 #if defined(__GNUC__) && !defined(__ICC)
 #    define av_uninit(x) x=x

Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h	Thu May 13 18:26:55 2010	(r23114)
+++ trunk/libavutil/internal.h	Thu May 13 18:30:58 2010	(r23115)
@@ -54,14 +54,6 @@
 #endif
 #endif
 
-#ifndef av_alias
-#if HAVE_ATTRIBUTE_MAY_ALIAS && (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3)
-#   define av_alias __attribute__((may_alias))
-#else
-#   define av_alias
-#endif
-#endif
-
 #ifndef INT16_MIN
 #define INT16_MIN       (-0x7fff - 1)
 #endif



More information about the ffmpeg-cvslog mailing list