From: <dg...@us...> - 2007-03-24 02:37:02
|
Update of /cvsroot/xine/xine-lib/src/xine-utils In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12178/src/xine-utils Modified Files: attributes.h Log Message: Improve tests for visibility attribute support; Mach-O supports default visibility but not protected (as the default is actually kinda like protected), thanks to Matt Messier in bug #1686194 for pointing me at that. Index: attributes.h =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-utils/attributes.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- attributes.h 25 Feb 2007 18:02:13 -0000 1.13 +++ attributes.h 24 Mar 2007 02:36:52 -0000 1.14 @@ -47,8 +47,10 @@ #endif /* Export protected only for libxine functions */ -#if defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY) +#if defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY_PROTECTED) # define XINE_PROTECTED __attribute__((visibility("protected"))) +#elif defined(XINE_LIBRARY_COMPILE) && defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT) +# define XINE_PROTECTED __attribute__((visibility("default"))) #else # define XINE_PROTECTED #endif |