Acfboy commented on PR #19912:
URL: https://github.com/apache/nuttx/pull/19912#issuecomment-5729807837
Hi @ghaerr @ppisa, I tried adding #pragma pack(2) to MWDLGTEMPLATE on my
machine, but it does not work. It looks like the reason is that the members of
MWDLGTEMPLATE carry the PACKEDDATA macro (`__attribute__((packed)`) on each
member), which removes the alignment requirement entirely.
```c
typedef struct tagMWDLGTEMPLATE
{
DWORD style;
DWORD dwExtendedStyle;
WORD PACKEDDATA cdit;
short PACKEDDATA x;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]