ImportC and #pragma pack
Walter Bright
newshound2 at digitalmars.com
Tue Sep 28 17:28:54 UTC 2021
On 9/28/2021 5:54 AM, Guillaume Piolat wrote:
> For example the VST3 SDK
> https://github.com/steinbergmedia/vst3_pluginterfaces/blob/b8566ef3b2a0cba60a96e3ef2001224c865c8b36/base/falignpush.h
>
>
> This header is then included before every struct definition.
> It's very easy after a D translation to have an ABI problem because of this, so
> SDK writers have written sizeof checks.
Filed a bug report on it:
https://github.com/steinbergmedia/vst3_pluginterfaces/issues/9
While that won't change our decision, I encourage people to file bug reports on
projects that use #pragma pack.
More information about the Digitalmars-d
mailing list