Kaydet (Commit) 22235c6a authored tarafından Pedro Giffuni's avatar Pedro Giffuni

i125369 - Illumos port: avoid some redefinitions

In the case of the Illumos/Solaris-i386 port there are some
conflicts caused by internal C definitions. Try to work them
out with some help of Illumos' opengrok.

On the case of the odbcbase driver rename the affected typedef
to avoid conflicts.
üst f8a51d0f
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include "comphelper/comphelperdllapi.h" #include "comphelper/comphelperdllapi.h"
// These are specified by i386 ABI suppl. but
// only affect Solaris i386/illumos so far.
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
#undef CS
#undef ES
#endif
//_______________________________________________ //_______________________________________________
// namespace // namespace
......
...@@ -69,11 +69,11 @@ rtl::OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeExceptio ...@@ -69,11 +69,11 @@ rtl::OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeExceptio
// Please take care when changing it. // Please take care when changing it.
} }
typedef Sequence< ::rtl::OUString > SS; typedef Sequence< ::rtl::OUString > SSEQ;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
SS ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException) SSEQ ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{ {
SS aSNS( 1 ); SSEQ aSNS( 1 );
aSNS[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbc.Driver"); aSNS[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbc.Driver");
return aSNS; return aSNS;
} }
...@@ -87,7 +87,7 @@ SS ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException) ...@@ -87,7 +87,7 @@ SS ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
//------------------------------------------------------------------ //------------------------------------------------------------------
sal_Bool SAL_CALL ODBCDriver::supportsService( const ::rtl::OUString& _rServiceName ) throw(RuntimeException) sal_Bool SAL_CALL ODBCDriver::supportsService( const ::rtl::OUString& _rServiceName ) throw(RuntimeException)
{ {
SS aSupported(getSupportedServiceNames()); SSEQ aSupported(getSupportedServiceNames());
const ::rtl::OUString* pSupported = aSupported.getConstArray(); const ::rtl::OUString* pSupported = aSupported.getConstArray();
const ::rtl::OUString* pEnd = pSupported + aSupported.getLength(); const ::rtl::OUString* pEnd = pSupported + aSupported.getLength();
for (;pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported) for (;pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported)
...@@ -97,7 +97,7 @@ sal_Bool SAL_CALL ODBCDriver::supportsService( const ::rtl::OUString& _rServiceN ...@@ -97,7 +97,7 @@ sal_Bool SAL_CALL ODBCDriver::supportsService( const ::rtl::OUString& _rServiceN
} }
//------------------------------------------------------------------ //------------------------------------------------------------------
SS SAL_CALL ODBCDriver::getSupportedServiceNames( ) throw(RuntimeException) SSEQ SAL_CALL ODBCDriver::getSupportedServiceNames( ) throw(RuntimeException)
{ {
return getSupportedServiceNames_Static(); return getSupportedServiceNames_Static();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment