From 0f8da82500ec542e269092c0718479e25eaff5f6 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 22:32:11 +0100 Subject: drm: remove drm_public macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some compilers (like the Oracle Studio), require that the function declaration must be annotated with the same visibility attribute as the definition. As annotating functions with drm_public is no longer required just remove the macro. Cc: Ben Skeggs Cc: Damien Lespiau Cc: Maarten Lankhorst Cc: Michel Dänzer Cc: Rob Clark Cc: Thierry Reding Signed-off-by: Emil Velikov --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c25a8133..e7152623 100644 --- a/configure.ac +++ b/configure.ac @@ -403,14 +403,13 @@ AC_ARG_WITH([kernel-source], [kernel_source="$with_kernel_source"]) AC_SUBST(kernel_source) -AC_MSG_CHECKING([whether $CC supports __attribute__((visibility))]) +AC_MSG_CHECKING([whether $CC supports __attribute__(("hidden"))]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ - int foo_default( void ) __attribute__((visibility("default"))); int foo_hidden( void ) __attribute__((visibility("hidden"))); ])], HAVE_ATTRIBUTE_VISIBILITY="yes"; AC_MSG_RESULT([yes]), AC_MSG_RESULT([no])); if test "x$HAVE_ATTRIBUTE_VISIBILITY" = xyes; then - AC_DEFINE(HAVE_VISIBILITY, 1, [Compiler supports __attribute__((visibility))]) + AC_DEFINE(HAVE_VISIBILITY, 1, [Compiler supports __attribute__(("hidden"))]) fi AC_SUBST(WARN_CFLAGS) -- cgit v1.2.3