Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
aacea7da
Kaydet (Commit)
aacea7da
authored
Mar 22, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make SAL_CALL placement work with both MinGW and MSVC
üst
ed0ffbba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
implementationentry.hxx
cppuhelper/inc/cppuhelper/implementationentry.hxx
+12
-4
No files found.
cppuhelper/inc/cppuhelper/implementationentry.hxx
Dosyayı görüntüle @
aacea7da
...
...
@@ -31,6 +31,14 @@
#include <cppuhelper/factory.hxx>
#include "cppuhelperdllapi.h"
// MinGW wants it the one way around while MSVC wants it the other (and
// everywhere else, SAL_CALL is empty, so doesn't matter):
#if defined __GNUC__
#define MY_FN_PTR(name) SAL_CALL (* name)
#else
#define MY_FN_PTR(name) (SAL_CALL * name)
#endif
namespace
cppu
{
/** One struct instance represents all data necessary for registering one service implementation.
...
...
@@ -45,17 +53,17 @@ struct ImplementationEntry
/** Function that returns the implementation-name of the implementation
(same as XServiceInfo.getImplementationName() ).
*/
rtl
::
OUString
SAL_CALL
(
*
getImplementationName
)();
rtl
::
OUString
MY_FN_PTR
(
getImplementationName
)();
/** Function that returns all supported servicenames of the implementation
( same as XServiceInfo.getSupportedServiceNames() ).
*/
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
SAL_CALL
(
*
getSupportedServiceNames
)
();
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
MY_FN_PTR
(
getSupportedServiceNames
)
();
/** Function that creates a SingleComponentFactory.
*/
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XSingleComponentFactory
>
SAL_CALL
(
*
createFactory
)(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XSingleComponentFactory
>
MY_FN_PTR
(
createFactory
)(
ComponentFactoryFunc
fptr
,
::
rtl
::
OUString
const
&
rImplementationName
,
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
rtl
::
OUString
>
const
&
rServiceNames
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment