Chris M. Thomasson wrote:
>>
>This should be an extern "C" linkage function, not a static member.
>
[...]
>
Yes. Humm... Well, FWIW, I guess one can take advantage of compiler
specific extensions here. It's a dirty thing, but I think it would work.
Something like:
>
#if defined(_MSC_VE R)
# define DECLSPEC_CDECL __cdecl
#elif defined(__GNUC_ _)
# define DECLSPEC_CDECL __attribute__(( cdecl))
#else
# error MSVC or GCC REQUIRED!!!!! ;^(...
#endif
>
Why bother with all that nonsense when there is a standard solution?
--
Ian Collins
>
"Ian Collins" <ian-news@hotmail.co mwrote in message
news:6mmgf1Fgdr 8lU11@mid.indiv idual.net...
"Ian Collins" <ian-news@hotmail.co mwrote in message
news:6mmgf1Fgdr 8lU11@mid.indiv idual.net...
>alexroat wrote:
>>private:
>> static void * gate(void *);//access point for pthread_create
>> static void * gate(void *);//access point for pthread_create
>This should be an extern "C" linkage function, not a static member.
[...]
>
Yes. Humm... Well, FWIW, I guess one can take advantage of compiler
specific extensions here. It's a dirty thing, but I think it would work.
Something like:
>
#if defined(_MSC_VE R)
# define DECLSPEC_CDECL __cdecl
#elif defined(__GNUC_ _)
# define DECLSPEC_CDECL __attribute__(( cdecl))
#else
# error MSVC or GCC REQUIRED!!!!! ;^(...
#endif
>
--
Ian Collins
Comment