Mercurial > libavutil.hg
comparison common.h @ 154:b94a48efd763 libavutil
move some __attribute__ macros to internal.h
author | mru |
---|---|
date | Wed, 06 Dec 2006 21:27:08 +0000 |
parents | 37eadd4352e9 |
children | 5d849a1c0d4d |
comparison
equal
deleted
inserted
replaced
153:37eadd4352e9 | 154:b94a48efd763 |
---|---|
44 # else | 44 # else |
45 # include "berrno.h" | 45 # include "berrno.h" |
46 # endif | 46 # endif |
47 # include <math.h> | 47 # include <math.h> |
48 #endif /* HAVE_AV_CONFIG_H */ | 48 #endif /* HAVE_AV_CONFIG_H */ |
49 | |
50 #ifndef always_inline | |
51 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) | |
52 # define always_inline __attribute__((always_inline)) inline | |
53 #else | |
54 # define always_inline inline | |
55 #endif | |
56 #endif | |
57 | |
58 #ifndef attribute_used | |
59 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) | |
60 # define attribute_used __attribute__((used)) | |
61 #else | |
62 # define attribute_used | |
63 #endif | |
64 #endif | |
65 | |
66 #ifndef attribute_unused | |
67 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) | |
68 # define attribute_unused __attribute__((unused)) | |
69 #else | |
70 # define attribute_unused | |
71 #endif | |
72 #endif | |
73 | 49 |
74 #ifndef attribute_deprecated | 50 #ifndef attribute_deprecated |
75 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) | 51 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) |
76 # define attribute_deprecated __attribute__((deprecated)) | 52 # define attribute_deprecated __attribute__((deprecated)) |
77 #else | 53 #else |