[Issue 15547] New: 64-bit struct alignment in core.sys.windows.setupapi inconsistent with msvc

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 10 12:57:04 PST 2016


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 at puremagic.com
          Reporter: treat at 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.

--


More information about the Digitalmars-d-bugs mailing list