* Use HashString for hash and id which contains the 20 byte array

directly, instead of using std::string.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@799 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-10-31 11:20:31 +00:00
parent c9d8a2406d
commit 9d465de7e1
11 changed files with 46 additions and 21 deletions
+18 -8
View File
@@ -58,23 +58,33 @@ AC_DEFUN([CC_ATTRIBUTE_INTERNAL], [
fi
])
AC_DEFUN([CC_ATTRIBUTE_DEFAULT], [
AC_DEFUN([CC_ATTRIBUTE_VISIBILITY], [
AC_LANG_PUSH(C++)
tmp_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
AC_CACHE_CHECK([if compiler supports __attribute__((visibility("default")))],
[cc_cv_attribute_default],
[cc_cv_attribute_visibility],
[AC_COMPILE_IFELSE([
void __attribute__((visibility("default"))) default_function() { }
void __attribute__((visibility("default"))) visibility_function() { }
],
[cc_cv_attribute_default=yes],
[cc_cv_attribute_default=no])
[cc_cv_attribute_visibility=yes],
[cc_cv_attribute_visibility=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])
CXXFLAGS=$tmp_CXXFLAGS
AC_LANG_POP(C++)
if test "x$cc_cv_attribute_visibility" = "xyes"; then
AC_DEFINE([SUPPORT_ATTRIBUTE_VISIBILITY], 1, [Define this if the compiler supports the visibility attributes.])
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
$1
else
true
true
$2
fi
])
AC_DEFUN([CC_ATTRIBUTE_NONNULL], [