use GLIB_CHECK_VERSION instead of GLIB_VERSION_X_XX
Michael Meeks pointed out that the latter can cause problems. Change-Id: I68e7f8c6dcfae52305738b2a8cdee72e9c2c7f93
This commit is contained in:
parent
8a6a940a46
commit
9dd52eb86a
@ -51,7 +51,7 @@ GConfClient* getGconfClient()
|
|||||||
static GConfClient* mClient= 0;
|
static GConfClient* mClient= 0;
|
||||||
if (mClient == NULL)
|
if (mClient == NULL)
|
||||||
{
|
{
|
||||||
#if !defined(GLIB_VERSION_2_36)
|
#if !GLIB_CHECK_VERSION(2,36,0)
|
||||||
/* initialize glib object type library */
|
/* initialize glib object type library */
|
||||||
g_type_init();
|
g_type_init();
|
||||||
#endif
|
#endif
|
||||||
|
@ -62,7 +62,7 @@ namespace shell { namespace sessioninstall
|
|||||||
{
|
{
|
||||||
SyncDbusSessionHelper::SyncDbusSessionHelper(Reference<XComponentContext> const&)
|
SyncDbusSessionHelper::SyncDbusSessionHelper(Reference<XComponentContext> const&)
|
||||||
{
|
{
|
||||||
#if !defined(GLIB_VERSION_2_36)
|
#if !GLIB_CHECK_VERSION(2,36,0)
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -885,7 +885,7 @@ TeleManagerImpl::TeleManagerImpl()
|
|||||||
mpFileTransferClient( NULL),
|
mpFileTransferClient( NULL),
|
||||||
mpAccountManager( NULL)
|
mpAccountManager( NULL)
|
||||||
{
|
{
|
||||||
#if !defined(GLIB_VERSION_2_36)
|
#if !GLIB_CHECK_VERSION(2,36,0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpgio1_component_getFactory( co
|
|||||||
uno::Reference< lang::XMultiServiceFactory > xSMgr
|
uno::Reference< lang::XMultiServiceFactory > xSMgr
|
||||||
(reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
|
(reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
|
||||||
uno::Reference< lang::XSingleServiceFactory > xFactory;
|
uno::Reference< lang::XSingleServiceFactory > xFactory;
|
||||||
#if !defined(GLIB_VERSION_2_36)
|
#if !GLIB_CHECK_VERSION(2,36,0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
#endif
|
#endif
|
||||||
if ( !::gio::ContentProvider::getImplementationName_Static().compareToAscii( pImplName ) )
|
if ( !::gio::ContentProvider::getImplementationName_Static().compareToAscii( pImplName ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user