Fix compilation with MSYS2

This commit is contained in:
Teemu N?tkinniemi 2017-12-09 18:59:36 +00:00
commit 5205f372e1

View file

@ -2,7 +2,7 @@
#include <windows.h> #include <windows.h>
#include <io.h> #include <io.h>
#ifdef __MINGW64__ #ifdef __MINGW64_VERSION_MAJOR
#include "ntddcdrm.h" #include "ntddcdrm.h"
#include "ntddscsi.h" #include "ntddscsi.h"
#else #else
@ -16,7 +16,7 @@
int cdrom_drive; int cdrom_drive;
int old_cdrom_drive; int old_cdrom_drive;
#ifndef __MINGW64__ #ifndef __MINGW64_VERSION_MAJOR
typedef struct _CDROM_TOC_SESSION_DATA { typedef struct _CDROM_TOC_SESSION_DATA {
UCHAR Length[2]; UCHAR Length[2];
UCHAR FirstCompleteSession; UCHAR FirstCompleteSession;