Kill check for ancient FreeBSD version
Change-Id: Ia6f7d55d2d8d346695658549d2e86eef77215377 Reviewed-on: https://gerrit.libreoffice.org/20625 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
committed by
Miklos Vajna
parent
c68b47ea1a
commit
cee2655445
@@ -100,11 +100,7 @@ public:
|
||||
};
|
||||
|
||||
RTTI::RTTI()
|
||||
#if defined(FREEBSD) && __FreeBSD_version < 702104
|
||||
: m_hApp( dlopen( 0, RTLD_NOW | RTLD_GLOBAL ) )
|
||||
#else
|
||||
: m_hApp( dlopen( 0, RTLD_LAZY ) )
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
@@ -139,11 +135,7 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr )
|
||||
buf.append( 'E' );
|
||||
|
||||
OString symName( buf.makeStringAndClear() );
|
||||
#if defined(FREEBSD) && __FreeBSD_version < 702104 /* #i22253# */
|
||||
rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
|
||||
#else
|
||||
rtti = static_cast<type_info *>(dlsym( m_hApp, symName.getStr() ));
|
||||
#endif
|
||||
|
||||
if (rtti)
|
||||
{
|
||||
|
@@ -95,11 +95,7 @@ std::type_info * RTTI::getRTTI(typelib_TypeDescription const & pTypeDescr)
|
||||
buf.append( 'E' );
|
||||
|
||||
OString symName( buf.makeStringAndClear() );
|
||||
#if defined(FREEBSD) && __FreeBSD_version < 702104 /* #i22253# */
|
||||
rtti = (std::type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
|
||||
#else
|
||||
rtti = static_cast<std::type_info *>(dlsym( m_hApp, symName.getStr() ));
|
||||
#endif
|
||||
|
||||
if (rtti)
|
||||
{
|
||||
|
Reference in New Issue
Block a user