Kaydet (Commit) c914d7d5 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) David Tardon

fdo#63154: Remove all usages of the macro EXTERN_C

Change-Id: I25b7f509ba5d1007a16c84ad05870a8174c094ec
Reviewed-on: https://gerrit.libreoffice.org/3621Reviewed-by: 's avatarTor Lillqvist <tml@iki.fi>
Tested-by: 's avatarTor Lillqvist <tml@iki.fi>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 914ea9a7
...@@ -31,35 +31,35 @@ ...@@ -31,35 +31,35 @@
#define SUPPORTED_FACTORIES_NUM 10 #define SUPPORTED_FACTORIES_NUM 10
#if defined(__MINGW32__) && !defined(INITGUID) #if defined(__MINGW32__) && !defined(INITGUID)
EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterTextServer; extern "C" const GUID DECLSPEC_SELECTANY OID_WriterTextServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer; extern "C" const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcServer; extern "C" const GUID DECLSPEC_SELECTANY OID_CalcServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcOASISServer; extern "C" const GUID DECLSPEC_SELECTANY OID_CalcOASISServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingServer; extern "C" const GUID DECLSPEC_SELECTANY OID_DrawingServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer; extern "C" const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationServer; extern "C" const GUID DECLSPEC_SELECTANY OID_PresentationServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer; extern "C" const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathServer; extern "C" const GUID DECLSPEC_SELECTANY OID_MathServer;
EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathOASISServer; extern "C" const GUID DECLSPEC_SELECTANY OID_MathOASISServer;
#else #else
EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterTextServer = { SO3_SW_OLE_EMBED_CLASSID_60 }; extern "C" const GUID DECLSPEC_SELECTANY OID_WriterTextServer = { SO3_SW_OLE_EMBED_CLASSID_60 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer = { SO3_SW_OLE_EMBED_CLASSID_8 }; extern "C" const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer = { SO3_SW_OLE_EMBED_CLASSID_8 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcServer = { SO3_SC_OLE_EMBED_CLASSID_60 }; extern "C" const GUID DECLSPEC_SELECTANY OID_CalcServer = { SO3_SC_OLE_EMBED_CLASSID_60 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcOASISServer = { SO3_SC_OLE_EMBED_CLASSID_8 }; extern "C" const GUID DECLSPEC_SELECTANY OID_CalcOASISServer = { SO3_SC_OLE_EMBED_CLASSID_8 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingServer = { SO3_SDRAW_OLE_EMBED_CLASSID_60 }; extern "C" const GUID DECLSPEC_SELECTANY OID_DrawingServer = { SO3_SDRAW_OLE_EMBED_CLASSID_60 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer = { SO3_SDRAW_OLE_EMBED_CLASSID_8 }; extern "C" const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer = { SO3_SDRAW_OLE_EMBED_CLASSID_8 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_60 }; extern "C" const GUID DECLSPEC_SELECTANY OID_PresentationServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_60 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_8 }; extern "C" const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_8 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathServer = { SO3_SM_OLE_EMBED_CLASSID_60 }; extern "C" const GUID DECLSPEC_SELECTANY OID_MathServer = { SO3_SM_OLE_EMBED_CLASSID_60 };
EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathOASISServer = { SO3_SM_OLE_EMBED_CLASSID_8 }; extern "C" const GUID DECLSPEC_SELECTANY OID_MathOASISServer = { SO3_SM_OLE_EMBED_CLASSID_8 };
#endif #endif
#endif #endif
......
...@@ -107,12 +107,6 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((sal_uInt8*)&n)[7 ...@@ -107,12 +107,6 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((sal_uInt8*)&n)[7
#endif #endif
#endif #endif
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C
#endif
#define _LF ((char)0x0A) #define _LF ((char)0x0A)
#define _CR ((char)0x0D) #define _CR ((char)0x0D)
......
...@@ -86,8 +86,6 @@ using namespace ::com::sun::star::uno; ...@@ -86,8 +86,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::text; using namespace ::com::sun::star::text;
using namespace ::com::sun::star; using namespace ::com::sun::star;
#define EXTERN_C extern "C"
/** /**
* @brief * @brief
* Implements the XFilter interface. * Implements the XFilter interface.
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#pragma warning(disable:4273) // inconsistent dll linkage #pragma warning(disable:4273) // inconsistent dll linkage
#endif #endif
EXTERN_C DWORD WINAPI GetShortPathNameW(LPCWSTR lpszLongPath,LPWSTR lpszShortPath,DWORD cchBuffer) extern "C" DWORD WINAPI GetShortPathNameW(LPCWSTR lpszLongPath,LPWSTR lpszShortPath,DWORD cchBuffer)
{ {
typedef DWORD (WINAPI * GetShortPathNameW_t) (LPCWSTR,LPWSTR,DWORD); typedef DWORD (WINAPI * GetShortPathNameW_t) (LPCWSTR,LPWSTR,DWORD);
......
...@@ -1734,7 +1734,7 @@ void SfxDispatcher::SetSlotFilter ...@@ -1734,7 +1734,7 @@ void SfxDispatcher::SetSlotFilter
} }
//-------------------------------------------------------------------- //--------------------------------------------------------------------
EXTERN_C extern "C"
#ifdef WNT #ifdef WNT
int _cdecl int _cdecl
#else #else
......
...@@ -35,7 +35,7 @@ DBG_NAME(SfxInterface) ...@@ -35,7 +35,7 @@ DBG_NAME(SfxInterface)
//==================================================================== //====================================================================
EXTERN_C extern "C"
#ifdef WNT #ifdef WNT
int _cdecl int _cdecl
#else #else
......
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