Mercurial > libavutil.hg
comparison internal.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 | 1f17993c2baa |
comparison
equal
deleted
inserted
replaced
918:e0e9e51684ef | 919:074893f9f95e |
---|---|
49 #ifndef attribute_used | 49 #ifndef attribute_used |
50 #if AV_GCC_VERSION_AT_LEAST(3,1) | 50 #if AV_GCC_VERSION_AT_LEAST(3,1) |
51 # define attribute_used __attribute__((used)) | 51 # define attribute_used __attribute__((used)) |
52 #else | 52 #else |
53 # define attribute_used | 53 # define attribute_used |
54 #endif | |
55 #endif | |
56 | |
57 #ifndef av_alias | |
58 #if HAVE_ATTRIBUTE_MAY_ALIAS && (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(3,3) | |
59 # define av_alias __attribute__((may_alias)) | |
60 #else | |
61 # define av_alias | |
62 #endif | 54 #endif |
63 #endif | 55 #endif |
64 | 56 |
65 #ifndef INT16_MIN | 57 #ifndef INT16_MIN |
66 #define INT16_MIN (-0x7fff - 1) | 58 #define INT16_MIN (-0x7fff - 1) |