digitalmars.D.bugs - [Issue 15547] New: 64-bit struct alignment in
- via Digitalmars-d-bugs (25/25) Jan 10 2016 https://issues.dlang.org/show_bug.cgi?id=15547
https://issues.dlang.org/show_bug.cgi?id=15547 Issue ID: 15547 Summary: 64-bit struct alignment in core.sys.windows.setupapi inconsistent with msvc Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: treat gmx.com Using 2.070.0-b1 32-bit sizeof SP_DEVICE_INTERFACE_DETAIL_DATA_A msvc: 5 D: 5 64-bit sizeof SP_DEVICE_INTERFACE_DETAIL_DATA_A msvc: 8 D: 5 <-- Line 872 in setupapi.d has align(1): should be 4 or 8, mingw-w64 has 8 msvc 4. Tried to fix it myself but I couldn't figure out how to make it work for both 32 and 64-bit without duplicating all the structs. --
Jan 10 2016