October 01, 2021 Re: ImportC and #pragma pack | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Friday, 1 October 2021 at 08:23:43 UTC, Walter Bright wrote:
> https://github.com/dlang/dmd/pull/13112
👍
|
October 01, 2021 Re: ImportC and #pragma pack | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On 9/30/2021 4:54 AM, Guillaume Piolat wrote:
> I'm looking at the VC headers coming with Visual Studio, and it seems you can go a long way with:
> #pragma once
> #pragma push_macro/pop_macro
> #pragma pack
The first two are dealt with by the preprocessor, not the compiler.
|
October 04, 2021 Re: ImportC and #pragma pack | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Tuesday, 28 September 2021 at 06:05:04 UTC, Walter Bright wrote:
> https://issues.dlang.org/show_bug.cgi?id=22315
>
> I'm on the fence about implementing this. On the one hand, I can do it and make it work. On the other hand, the C11 way is to use _Alignas, and that's 10 years old now. How far do we go with implementing all the nutburger obsolete C extension cruft out there?
FYI, just asked two of the "old guys" at my workplace and they said there where a few places pragma pack was used in our codebase
|
Copyright © 1999-2021 by the D Language Foundation