diff options
author | Måns Rullgård <mans@mansr.com> | 2010-01-29 03:26:14 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-01-29 03:26:14 +0000 |
commit | 788627dea6b353048883c87bedf0f8f93dee6787 (patch) | |
tree | 3db47540dcc7f0d87bc946ad766b90b37cdb492d | |
parent | dffb41b95349acbe97da69947f5d05f17d06045c (diff) | |
download | ffmpeg-788627dea6b353048883c87bedf0f8f93dee6787.tar.gz |
Define av_alias if supported by compiler
Originally committed as revision 21523 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index f0ea232ae6..cd63b3d2a4 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -55,6 +55,14 @@ #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 |