Why is the ABI for structs different between Linux and Windows?
Walter Bright
newshound1 at digitalmars.com
Sat May 17 02:50:37 PDT 2008
Robert Fraser wrote:
> Walter Bright wrote:
>> The struct ABI is designed to be compatible with the C struct behavior
>> for the local C compiler.
>
> Is it possible to just use this behavior for extern(C) structs while
> structs with D linkage use the Windows behavior on Linux, too?
Why do that? You can control the layout with the align attribute, if
need be.
More information about the Digitalmars-d
mailing list