Define av_alias if supported by compiler
authorMåns Rullgård <mans@mansr.com>
Fri, 29 Jan 2010 03:26:14 +0000 (03:26 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 29 Jan 2010 03:26:14 +0000 (03:26 +0000)
Originally committed as revision 21523 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index f0ea232..cd63b3d 100644 (file)
 #endif
 #endif
 
+#ifndef av_alias
+#if HAVE_ATTRIBUTE_MAY_ALIAS
+#   define av_alias __attribute__((may_alias))
+#else
+#   define av_alias
+#endif
+#endif
+
 #ifndef INT16_MIN
 #define INT16_MIN       (-0x7fff - 1)
 #endif