Re: [Mingw-w64-public] [PATCH] ddk/scsi: add missing enum and define entries

2020-06-16 Thread Alex Alabuzhev
Thanks. > why unnamed union in other header file does not show that error? Presumably because other unnamed unions only introduce unnamed structs. I.e. the other way to fix it could be removing _LBA and _MSF type names and marking the corresponding structs as anonymous. -- Best regards, Alex

Re: [Mingw-w64-public] [PATCH] ddk/scsi: add missing enum and define entries

2020-06-16 Thread Alex Alabuzhev
@@ -975,24 +1122,22 @@ typedef union _CDB { UCHAR CMSF:1; UCHAR ExpectedSectorType:3; UCHAR Lun:3; -struct _LBA { - UCHAR StartingBlockAddress[4]; - UCHAR PlayLength[4]; -}; -struct _MSF { - UCHAR Reserved1; - UCHAR StartingM; - UCHAR StartingS; -

[Mingw-w64-public] Error in CDB.GET_CONFIGURATION definition (include/ddk/scsi.h)

2020-06-15 Thread Alex Alabuzhev
Hi, In include/ddk/scsi.h: typedef union _CDB { ... struct _GET_CONFIGURATION { UCHAR OperationCode; UCHAR RequestType:1; UCHAR Reserved1:7; UCHAR StartingFeature[2]; UCHAR Reserved2[3]; UCHAR AllocationLength[2]; UCHAR Control; } GET_CONFIGURATION; ... } CDB, *PCD