* Added symbol export attributes to the API and made the rest hidden

by default.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@798 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-10-27 13:07:36 +00:00
parent 5dfc986658
commit c9d8a2406d
+19
View File
@@ -58,6 +58,25 @@ AC_DEFUN([CC_ATTRIBUTE_INTERNAL], [
fi
])
AC_DEFUN([CC_ATTRIBUTE_DEFAULT], [
AC_CACHE_CHECK([if compiler supports __attribute__((visibility("default")))],
[cc_cv_attribute_default],
[AC_COMPILE_IFELSE([
void __attribute__((visibility("default"))) default_function() { }
],
[cc_cv_attribute_default=yes],
[cc_cv_attribute_default=no])
])
if test "x$cc_cv_attribute_default" = "xyes"; then
AC_DEFINE([SUPPORT_ATTRIBUTE_DEFAULT], 1, [Define this if the compiler supports the default visibility attribute])
$1
else
true
$2
fi
])
AC_DEFUN([CC_ATTRIBUTE_NONNULL], [
AC_CACHE_CHECK([if compiler supports __attribute__((nonnull()))],
[cc_cv_attribute_nonnull],