Author: hdu
Date: Wed Apr 17 14:53:21 2013
New Revision: 1468948

URL: http://svn.apache.org/r1468948
Log:
only check for gcc-visibility feature but not for gcc itself

there are non-gcc compilers such as clang that support this feature

Modified:
    openoffice/trunk/main/sal/inc/sal/types.h

Modified: openoffice/trunk/main/sal/inc/sal/types.h
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/inc/sal/types.h?rev=1468948&r1=1468947&r2=1468948&view=diff
==============================================================================
--- openoffice/trunk/main/sal/inc/sal/types.h (original)
+++ openoffice/trunk/main/sal/inc/sal/types.h Wed Apr 17 14:53:21 2013
@@ -268,7 +268,7 @@ typedef void *                   sal_Han
 #     define SAL_DLLPUBLIC_EXPORT  __global
 #     define SAL_DLLPUBLIC_IMPORT
 #     define SAL_DLLPRIVATE        __hidden
-#   elif defined(__GNUC__) && defined(HAVE_GCC_VISIBILITY_FEATURE)
+#   elif defined(HAVE_GCC_VISIBILITY_FEATURE)
 #     define SAL_DLLPUBLIC_EXPORT  __attribute__ ((visibility("default")))
 #     define SAL_DLLPUBLIC_IMPORT
 #     define SAL_DLLPRIVATE        __attribute__ ((visibility("hidden")))


Reply via email to