axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nandika jayawardana <jayaw...@gmail.com>
Subject [Axis2] some additions to axis2_defines.h
Date Wed, 19 Oct 2005 10:36:34 GMT
---------- Forwarded message ----------
From: Damitha Kumarage <damitha23@gmail.com>
Date: Oct 19, 2005 2:04 AM
Subject: some additions to axis2_defines.h
To: axis-c-dev@ws.apache.org

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

Mime
View raw message