~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavutil/attributes.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#    define AV_GCC_VERSION_AT_LEAST(x,y) 0
33
33
#endif
34
34
 
35
 
#ifndef av_always_inline
36
35
#if AV_GCC_VERSION_AT_LEAST(3,1)
37
36
#    define av_always_inline __attribute__((always_inline)) inline
 
37
#elif defined(_MSC_VER)
 
38
#    define av_always_inline __forceinline
38
39
#else
39
40
#    define av_always_inline inline
40
41
#endif
41
 
#endif
42
42
 
43
 
#ifndef av_noinline
44
43
#if AV_GCC_VERSION_AT_LEAST(3,1)
45
44
#    define av_noinline __attribute__((noinline))
46
45
#else
47
46
#    define av_noinline
48
47
#endif
49
 
#endif
50
48
 
51
 
#ifndef av_pure
52
49
#if AV_GCC_VERSION_AT_LEAST(3,1)
53
50
#    define av_pure __attribute__((pure))
54
51
#else
55
52
#    define av_pure
56
53
#endif
57
 
#endif
58
54
 
59
 
#ifndef av_const
60
55
#if AV_GCC_VERSION_AT_LEAST(2,6)
61
56
#    define av_const __attribute__((const))
62
57
#else
63
58
#    define av_const
64
59
#endif
65
 
#endif
66
60
 
67
 
#ifndef av_cold
68
61
#if AV_GCC_VERSION_AT_LEAST(4,3)
69
62
#    define av_cold __attribute__((cold))
70
63
#else
71
64
#    define av_cold
72
65
#endif
73
 
#endif
74
66
 
75
 
#ifndef av_flatten
76
67
#if AV_GCC_VERSION_AT_LEAST(4,1)
77
68
#    define av_flatten __attribute__((flatten))
78
69
#else
79
70
#    define av_flatten
80
71
#endif
81
 
#endif
82
72
 
83
 
#ifndef attribute_deprecated
84
73
#if AV_GCC_VERSION_AT_LEAST(3,1)
85
74
#    define attribute_deprecated __attribute__((deprecated))
86
75
#else
87
76
#    define attribute_deprecated
88
77
#endif
89
 
#endif
90
78
 
91
 
#ifndef av_unused
92
79
#if defined(__GNUC__)
93
80
#    define av_unused __attribute__((unused))
94
81
#else
95
82
#    define av_unused
96
83
#endif
97
 
#endif
98
84
 
99
85
/**
100
86
 * Mark a variable as used and prevent the compiler from optimizing it
101
87
 * away.  This is useful for variables accessed only from inline
102
88
 * assembler without the compiler being aware.
103
89
 */
104
 
#ifndef av_used
105
90
#if AV_GCC_VERSION_AT_LEAST(3,1)
106
91
#    define av_used __attribute__((used))
107
92
#else
108
93
#    define av_used
109
94
#endif
110
 
#endif
111
95
 
112
 
#ifndef av_alias
113
96
#if AV_GCC_VERSION_AT_LEAST(3,3)
114
97
#   define av_alias __attribute__((may_alias))
115
98
#else
116
99
#   define av_alias
117
100
#endif
118
 
#endif
119
101
 
120
 
#ifndef av_uninit
121
102
#if defined(__GNUC__) && !defined(__ICC)
122
103
#    define av_uninit(x) x=x
123
104
#else
124
105
#    define av_uninit(x) x
125
106
#endif
126
 
#endif
127
107
 
128
108
#ifdef __GNUC__
129
109
#    define av_builtin_constant_p __builtin_constant_p
133
113
#    define av_printf_format(fmtpos, attrpos)
134
114
#endif
135
115
 
 
116
#if AV_GCC_VERSION_AT_LEAST(2,5)
 
117
#    define av_noreturn __attribute__((noreturn))
 
118
#else
 
119
#    define av_noreturn
 
120
#endif
 
121
 
136
122
#endif /* AVUTIL_ATTRIBUTES_H */