From 5205f372e19162dc6959bdb320289d450161a11b Mon Sep 17 00:00:00 2001 From: Teemu N?tkinniemi Date: Sat, 9 Dec 2017 18:59:36 +0000 Subject: [PATCH] Fix compilation with MSYS2 --- src/cdrom-ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdrom-ioctl.c b/src/cdrom-ioctl.c index f1b133c..62c8319 100644 --- a/src/cdrom-ioctl.c +++ b/src/cdrom-ioctl.c @@ -2,7 +2,7 @@ #include #include -#ifdef __MINGW64__ +#ifdef __MINGW64_VERSION_MAJOR #include "ntddcdrm.h" #include "ntddscsi.h" #else @@ -16,7 +16,7 @@ int cdrom_drive; int old_cdrom_drive; -#ifndef __MINGW64__ +#ifndef __MINGW64_VERSION_MAJOR typedef struct _CDROM_TOC_SESSION_DATA { UCHAR Length[2]; UCHAR FirstCompleteSession;