diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-02-19 12:10:25 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-02-19 12:10:39 +0100 |
commit | 4c7d04c681a44caff1eba8f2022dacdf1242b1b5 (patch) | |
tree | 2d50ff4669d9a4f8ec5b0eb688330efc496e5869 /connectivity | |
parent | 1c885ce3fc3b451b6f6a3b29f2f0e9848b76f890 (diff) |
g_strcmp0 is not in our baseline glib2
Change-Id: I65b4ea5bb8beacef79e963e4dd78fa764f3ab697
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 11742c183746..32bce4d20f11 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -39,6 +39,17 @@ using namespace com::sun::star::beans; using namespace com::sun::star::sdbc; using namespace com::sun::star::sdbcx; +namespace +{ + int libo_strcmp0 (const char *str1, const char *str2) + { + if (!str1) + return -(str1 != str2); + if (!str2) + return str1 != str2; + return strcmp (str1, str2); + } +} namespace connectivity { @@ -1090,7 +1101,7 @@ bool isSourceBackend(ESource *pSource, const char *backendname) return false; gpointer extension = e_source_get_extension (pSource, E_SOURCE_EXTENSION_ADDRESS_BOOK); - return extension && g_strcmp0 (e_source_backend_get_backend_name (extension), backendname) == 0; + return extension && libo_strcmp0 (e_source_backend_get_backend_name (extension), backendname) == 0; } Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTables( |