mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 06:02:31 +00:00
* 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:
+18
-8
@@ -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], [
|
||||
|
||||
Reference in New Issue
Block a user