diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2008-12-20 17:33:35 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2008-12-20 17:33:35 +0000 |
commit | 52476c1beeafbb31e3277e950ec175444ece05af (patch) | |
tree | b562f8925e9611e837f7eed9921d98e2fcbc49d0 /libavutil/internal.h | |
parent | 541e8f3beccbe806599e9af4902d1e68b4367b80 (diff) | |
download | ffmpeg-52476c1beeafbb31e3277e950ec175444ece05af.tar.gz |
Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.
Originally committed as revision 16246 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 535791a523..9d029dd97a 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -33,9 +33,10 @@ #include <stdint.h> #include <stddef.h> #include <assert.h> +#include "common.h" #ifndef attribute_align_arg -#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__>1) +#if AV_GCC_VERSION_AT_LEAST(4,2) # define attribute_align_arg __attribute__((force_align_arg_pointer)) #else # define attribute_align_arg @@ -43,7 +44,7 @@ #endif #ifndef attribute_used -#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) +#if AV_GCC_VERSION_AT_LEAST(3,1) # define attribute_used __attribute__((used)) #else # define attribute_used |