From cf6a122e569e4af5e1c724183f86ab2753e0990a Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 26 Apr 2004 09:44:06 +0000 Subject: [PATCH] attribute_used macro git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12291 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index 0002c99c14..911f06ce4b 100755 --- a/configure +++ b/configure @@ -6106,6 +6106,13 @@ $_def_dynamic_plugins /* "restrict" keyword */ #define restrict $_def_restrict_keyword +/* attribute(used) as needed by some compilers */ +#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300) +# define attribute_used __attribute__((used)) +#else +# define attribute_used +#endif + #define PREFIX "$_prefix" #define USE_OSD 1