[LAD] VST SDK2.4 issue

From: Victor Lazzarini <Victor.Lazzarini@email-addr-hidden>
Date: Thu Aug 27 2009 - 17:58:22 EEST

Hi everyone,

perhaps one of you might have already seen this issue and will
know what is the best solution.

My problem is that one of the headers in the VST SDK2.4, aeffect.h,
has a macro, VSTCALLBACK, which in gcc will be defined
as __cdecl . This is not recognised by the compiler, thus preventing
me from using that header (to build a plugin).

My solution was to forcibly undefine __GNUC__ so that the macro
gets a blank definition.

However, I am not sure this is the best way out; I am wondering whether
the calling convention will break the plugin, since the host might be
expecting __cdecl and it will not be getting it.

Perhaps someone else would have a different solution.

Regards

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Thu Aug 27 20:15:02 2009

This archive was generated by hypermail 2.1.8 : Thu Aug 27 2009 - 20:15:02 EEST