From 896f3fa1b9b314856e78ce5787bfcba09e40849d Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 2 Jan 2004 23:43:52 +0000 Subject: [PATCH] fix header include differences between mingw and visual c Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1533 --- src/dos/cdrom_aspi_win32.cpp | 16 +++++++++++----- src/dos/cdrom_ioctl_win32.cpp | 11 ++++++++--- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/dos/cdrom_aspi_win32.cpp b/src/dos/cdrom_aspi_win32.cpp index 1787e8af..156b25e2 100644 --- a/src/dos/cdrom_aspi_win32.cpp +++ b/src/dos/cdrom_aspi_win32.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: cdrom_aspi_win32.cpp,v 1.8 2004-01-02 23:10:31 finsterr Exp $ */ +/* $Id: cdrom_aspi_win32.cpp,v 1.9 2004-01-02 23:43:52 harekiet Exp $ */ #if defined (WIN32) @@ -27,11 +27,17 @@ //Are actually system includes but leave for now #include "wnaspi32.h" -#include "ntddcdrm.h" -#include "ntddscsi.h" -#include "scsidefs.h" -#include +#if defined (_MSC_VER) +#include // Ioctl stuff +#include +#include // Ioctl stuff +#else +#include "ddk/ntddcdrm.h" // Ioctl stuff +#include "ddk/ntddscsi.h" +#endif + +#include "scsidefs.h" // ***************************************************************** // Windows ASPI functions (should work for all WIN with ASPI layer) diff --git a/src/dos/cdrom_ioctl_win32.cpp b/src/dos/cdrom_ioctl_win32.cpp index fda4e124..a3ef30f5 100644 --- a/src/dos/cdrom_ioctl_win32.cpp +++ b/src/dos/cdrom_ioctl_win32.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: cdrom_ioctl_win32.cpp,v 1.8 2004-01-02 23:10:31 finsterr Exp $ */ +/* $Id: cdrom_ioctl_win32.cpp,v 1.9 2004-01-02 23:43:52 harekiet Exp $ */ #if defined (WIN32) @@ -25,10 +25,15 @@ // ***************************************************************** #include -#include // Ioctl stuff #include -#include "ntddcdrm.h" // Ioctl stuff +#if defined (_MSC_VER) +#include // Ioctl stuff +#include // Ioctl stuff +#else +#include "ddk/ntddcdrm.h" // Ioctl stuff +#endif + #include "cdrom.h" CDROM_Interface_Ioctl::CDROM_Interface_Ioctl()