Mercurial > libavutil.hg
diff internal.h @ 590:e9d89a89561a libavutil
Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.
author | cehoyos |
---|---|
date | Sat, 20 Dec 2008 17:33:35 +0000 |
parents | 9dd4312d8a4d |
children | 5fe37f8a1017 |
line wrap: on
line diff
--- a/internal.h Wed Dec 17 20:04:39 2008 +0000 +++ b/internal.h Sat Dec 20 17:33:35 2008 +0000 @@ -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