nandika jayawardana wrote:



---------- Forwarded message ----------
From: *Damitha Kumarage* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
Date: Oct 19, 2005 2:04 AM
Subject: some additions to axis2_defines.h
To: [email protected] <mailto:[email protected]>

Hi,

I'll add following code into axis2_defines.h to identify calling
conventions on different platforms

#if defined(__GNUC__)
#define AXIS2_CALL __attribute__((cdecl))
#else /* unix or win32 */
#if defined(__unix)
#define AXIS2_CALL
#else
#define AXIS2_CALL __stdcall
#endif

so that exposed functions can be declared as
void AXISCALL axis2_exposed_function()

I'll also add following

#if defined(WIN32)
#define AXIS2_STORAGE_CLASS_INFO __declspec(dllexport)
#else
#define AXIS2_STORAGE_CLASS_INFO
#endif

regards,
damitha

I added AXIS2_DECLARE using AXIS2_CALL to use appropriate calling and import/export extentions.

Thanks,
Samisa...

Reply via email to