diff --git a/src/dos/cdrom_aspi_win32.cpp b/src/dos/cdrom_aspi_win32.cpp index 35c891ff..abc48ed1 100644 --- a/src/dos/cdrom_aspi_win32.cpp +++ b/src/dos/cdrom_aspi_win32.cpp @@ -32,10 +32,11 @@ #include // Ioctl stuff #include #include // Ioctl stuff -#else -#ifdef __MINGW64_VERSION_MAJOR -#include -#endif +#elif (defined __MINGW64_VERSION_MAJOR) +#include // Ioctl stuff +#include // Ioctl stuff +#include +#else #include "ddk/ntddcdrm.h" // Ioctl stuff #include "ddk/ntddscsi.h" #endif diff --git a/src/dos/cdrom_ioctl_win32.cpp b/src/dos/cdrom_ioctl_win32.cpp index 615750e1..84e15e97 100644 --- a/src/dos/cdrom_ioctl_win32.cpp +++ b/src/dos/cdrom_ioctl_win32.cpp @@ -26,7 +26,7 @@ #include #include -#if defined (_MSC_VER) +#if (defined (_MSC_VER)) || (defined __MINGW64_VERSION_MAJOR) #include // Ioctl stuff #include // Ioctl stuff #else