Mercurial > libavutil.hg
comparison attributes.h @ 919:074893f9f95e libavutil
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.
author | michael |
---|---|
date | Thu, 13 May 2010 16:30:58 +0000 |
parents | 0795a743bda1 |
children |
comparison
equal
deleted
inserted
replaced
918:e0e9e51684ef | 919:074893f9f95e |
---|---|
94 #else | 94 #else |
95 # define av_unused | 95 # define av_unused |
96 #endif | 96 #endif |
97 #endif | 97 #endif |
98 | 98 |
99 #ifndef av_alias | |
100 #if (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3) | |
101 # define av_alias __attribute__((may_alias)) | |
102 #else | |
103 # define av_alias | |
104 #endif | |
105 #endif | |
106 | |
99 #ifndef av_uninit | 107 #ifndef av_uninit |
100 #if defined(__GNUC__) && !defined(__ICC) | 108 #if defined(__GNUC__) && !defined(__ICC) |
101 # define av_uninit(x) x=x | 109 # define av_uninit(x) x=x |
102 #else | 110 #else |
103 # define av_uninit(x) x | 111 # define av_uninit(x) x |