# HG changeset patch # User William Roberts # Date 1276688277 -3600 # Node ID 8b609b439da206fef40c87254c1ef438f5198d49 # Parent 16dccf7ef352c7fb20334dd849226ad40f46c102 Ensure matching EXPORT_C/IMPORT_C for GCCE builds - Bug 2966 diff -r 16dccf7ef352 -r 8b609b439da2 egl/eglinterface/include/khrplatform.h --- a/egl/eglinterface/include/khrplatform.h Tue Jun 15 18:03:59 2010 +0100 +++ b/egl/eglinterface/include/khrplatform.h Wed Jun 16 12:37:57 2010 +0100 @@ -95,30 +95,10 @@ #define __KHR_EXPORTS #endif -#if defined(_WIN32) || defined(__VC32__) || defined(__MWERKS__) || defined(__CW32__) /* Win32 */ -# ifdef __KHR_EXPORTS -# define KHRONOS_APICALL __declspec(dllexport) -# else -# define KHRONOS_APICALL __declspec(dllexport) -# endif +#ifdef __KHR_EXPORTS +#define KHRONOS_APICALL EXPORT_C #else -# if defined (__ARMCC_VERSION) -# if (__ARMCC_VERSION <= 310000) || (__ARMCC_VERSION >= 400000) -# ifdef __KHR_EXPORTS -# define KHRONOS_APICALL __declspec(dllexport) -# else -# define KHRONOS_APICALL __declspec(dllimport) -# endif -# else -# define KHRONOS_APICALL __declspec(dllimport) -# endif -# else -# ifdef __KHR_EXPORTS -# define KHRONOS_APICALL -# else -# define KHRONOS_APICALL extern -# endif -# endif +#define KHRONOS_APICALL IMPORT_C #endif #define KHRONOS_APIENTRY diff -r 16dccf7ef352 -r 8b609b439da2 graphicscomposition/openwfsupport/inc/streammap.h --- a/graphicscomposition/openwfsupport/inc/streammap.h Tue Jun 15 18:03:59 2010 +0100 +++ b/graphicscomposition/openwfsupport/inc/streammap.h Wed Jun 16 12:37:57 2010 +0100 @@ -177,7 +177,7 @@ */ static TUint32 HashFunction(const TSurfaceId& aHashKey); - static TInt COpenWfcStreamMap::DeleteSingleton(TAny* aData); + static TInt DeleteSingleton(TAny* aData); private: /** * Mutex used for controlling the access to the native streams map diff -r 16dccf7ef352 -r 8b609b439da2 graphicsdeviceinterface/directgdi/inc/directgdicontext.h --- a/graphicsdeviceinterface/directgdi/inc/directgdicontext.h Tue Jun 15 18:03:59 2010 +0100 +++ b/graphicsdeviceinterface/directgdi/inc/directgdicontext.h Wed Jun 16 12:37:57 2010 +0100 @@ -155,7 +155,7 @@ IMPORT_C TInt GetInterface(TUid aInterfaceId, TAny*& aInterface); private: - CDirectGdiContext(CDirectGdiDriver& aDirectGdiDriver); + IMPORT_C CDirectGdiContext(CDirectGdiDriver& aDirectGdiDriver); void ConstructL(); void CleanUpBrushPattern(); void DrawText(const TDesC& aText, const DirectGdi::TTextParameters* aParam, const TPoint& aPosition, DirectGdi::TTextAlign aAlignment, diff -r 16dccf7ef352 -r 8b609b439da2 windowing/windowserver/inc/W32STDGRAPHIC.H --- a/windowing/windowserver/inc/W32STDGRAPHIC.H Tue Jun 15 18:03:59 2010 +0100 +++ b/windowing/windowserver/inc/W32STDGRAPHIC.H Wed Jun 16 12:37:57 2010 +0100 @@ -80,8 +80,8 @@ IMPORT_C TInt UnShare(TSecureId aClientId); private: CWsGraphicBitmap(); - void HandleMessage(const TDesC8& aData); - void OnReplace(); + IMPORT_C void HandleMessage(const TDesC8& aData); + IMPORT_C void OnReplace(); }; NONSHARABLE_CLASS(CWsGraphicBitmapAnimation): public CWsGraphic