summaryrefslogtreecommitdiff
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2012-07-01 20:36:03 +0200
committerReinhard Tartler <siretart@tauware.de>2012-07-03 17:26:51 +0200
commita1641e954091760a759e6281ccc360d3817f9397 (patch)
treeadf6d47d93a05047123a971f17d94d26dd92c815 /libavutil/attributes.h
parent06eb4f0885746b7e8a652d7b6026abf834e04b73 (diff)
attributes: drop pointless define guards
the av_-prefixed attributes must not be defined outside of this file
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index c0bac3f309..7a9b18b808 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -32,7 +32,6 @@
# define AV_GCC_VERSION_AT_LEAST(x,y) 0
#endif
-#ifndef av_always_inline
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define av_always_inline __attribute__((always_inline)) inline
#elif defined(_MSC_VER)
@@ -40,92 +39,71 @@
#else
# define av_always_inline inline
#endif
-#endif
-#ifndef av_noinline
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define av_noinline __attribute__((noinline))
#else
# define av_noinline
#endif
-#endif
-#ifndef av_pure
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define av_pure __attribute__((pure))
#else
# define av_pure
#endif
-#endif
-#ifndef av_const
#if AV_GCC_VERSION_AT_LEAST(2,6)
# define av_const __attribute__((const))
#else
# define av_const
#endif
-#endif
-#ifndef av_cold
#if AV_GCC_VERSION_AT_LEAST(4,3)
# define av_cold __attribute__((cold))
#else
# define av_cold
#endif
-#endif
-#ifndef av_flatten
#if AV_GCC_VERSION_AT_LEAST(4,1)
# define av_flatten __attribute__((flatten))
#else
# define av_flatten
#endif
-#endif
-#ifndef attribute_deprecated
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define attribute_deprecated __attribute__((deprecated))
#else
# define attribute_deprecated
#endif
-#endif
-#ifndef av_unused
#if defined(__GNUC__)
# define av_unused __attribute__((unused))
#else
# define av_unused
#endif
-#endif
/**
* Mark a variable as used and prevent the compiler from optimizing it
* away. This is useful for variables accessed only from inline
* assembler without the compiler being aware.
*/
-#ifndef av_used
#if AV_GCC_VERSION_AT_LEAST(3,1)
# define av_used __attribute__((used))
#else
# define av_used
#endif
-#endif
-#ifndef av_alias
#if AV_GCC_VERSION_AT_LEAST(3,3)
# define av_alias __attribute__((may_alias))
#else
# define av_alias
#endif
-#endif
-#ifndef av_uninit
#if defined(__GNUC__) && !defined(__ICC)
# define av_uninit(x) x=x
#else
# define av_uninit(x) x
#endif
-#endif
#ifdef __GNUC__
# define av_builtin_constant_p __builtin_constant_p