From 7b92b84415dd3292538eb4e44fac12b4e564b984 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 23 Mar 2016 15:28:45 +1300 Subject: [PATCH] mdssvc/sparql_parser.c: use HAVE___ATTRIBUTE__ instead of __GNUC__ Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett Reviewed-by: Uri Simchoni --- source3/rpc_server/mdssvc/sparql_parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/rpc_server/mdssvc/sparql_parser.c b/source3/rpc_server/mdssvc/sparql_parser.c index 81702907ffd..3cd532b7ffa 100644 --- a/source3/rpc_server/mdssvc/sparql_parser.c +++ b/source3/rpc_server/mdssvc/sparql_parser.c @@ -241,9 +241,7 @@ typedef short int yytype_int16; #endif #ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# if HAVE___ATTRIBUTE__ # define YY_ATTRIBUTE(Spec) __attribute__(Spec) # else # define YY_ATTRIBUTE(Spec) /* empty */