Fix #17486 - mmsystem header has align(1): near top#23248
Conversation
|
Thanks for your pull request and interest in making D better, @0-v-0! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
|
This looks to be required. https://github.com/tpn/winsdk-10/blob/master/Include/10.0.16299.0/um/mmsystem.h#L36 |
|
struct A {
align(1):
ubyte x;
int y;
}
pragma(msg, A.sizeof);
pragma(msg, A.y.offsetof);
align(1):
struct B {
ubyte x;
int y;
}
pragma(msg, B.sizeof);
pragma(msg, B.y.offsetof);outputs 5,1,8,4 |
No description provided.