Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use C11's _Alignas instead of #pragma pack #9

Closed
WalterBright opened this issue Sep 28, 2021 · 2 comments
Closed

Use C11's _Alignas instead of #pragma pack #9

WalterBright opened this issue Sep 28, 2021 · 2 comments

Comments

@WalterBright
Copy link

Files like:

https://github.com/steinbergmedia/vst3_pluginterfaces/blob/b8566ef3b2a0cba60a96e3ef2001224c865c8b36/base/falignpush.h

rely on #pragma pack which is obsolete.

@scheffle
Copy link
Collaborator

We still need to support compilers which do not support C11. But we will reconsider this change if we can drop these compilers.

@WalterBright
Copy link
Author

There's a predefined macro for C11 which can be used to provide an alternate path to support obsolete compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants