Compile works fine and binary as well if I comment out the whole #ifndef block for _CDROM_TOC_SESSION_DATA.
64 bit shell compiles without error.
MSYS2 used was from Battler found somewhere here in the forum and then updated via pacman -Syu last month.
I'm ok with having to comment the block, just thought I should mention it.
Error messages:
Code: Select all
cdrom-ioctl.c:18:16: error: redefinition of 'struct _CDROM_TOC_SESSION_DATA'
typedef struct _CDROM_TOC_SESSION_DATA {
^
In file included from cdrom-ioctl.c:8:0:
E:/msys64_gcc52/mingw32/i686-w64-mingw32/include/ddk/ntddcdrm.h:168:16: note: originally defined here
typedef struct _CDROM_TOC_SESSION_DATA {
^
cdrom-ioctl.c:23:3: error: conflicting types for 'CDROM_TOC_SESSION_DATA'
} CDROM_TOC_SESSION_DATA, *PCDROM_TOC_SESSION_DATA;
^
In file included from cdrom-ioctl.c:8:0:
E:/msys64_gcc52/mingw32/i686-w64-mingw32/include/ddk/ntddcdrm.h:173:3: note: previous declaration of 'CDROM_TOC_SESSION_DATA' was here
} CDROM_TOC_SESSION_DATA, *PCDROM_TOC_SESSION_DATA;
^
cdrom-ioctl.c:23:28: error: conflicting types for 'PCDROM_TOC_SESSION_DATA'
} CDROM_TOC_SESSION_DATA, *PCDROM_TOC_SESSION_DATA;