diff options
author | Johannes Schickel | 2016-03-13 20:02:34 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-14 01:03:13 +0100 |
commit | 88f8ecde0b3e29a6901b408de535216f70357028 (patch) | |
tree | 4257037aac7dde1e45fa3e6f6e89609b753e91da /backends/audiocd/win32/win32-audiocd.cpp | |
parent | 2872c7f9eb3c07dd18c204251a0597a001c0b22c (diff) | |
download | scummvm-rg350-88f8ecde0b3e29a6901b408de535216f70357028.tar.gz scummvm-rg350-88f8ecde0b3e29a6901b408de535216f70357028.tar.bz2 scummvm-rg350-88f8ecde0b3e29a6901b408de535216f70357028.zip |
WIN32: Supply required DDK headers for older MSVC.
Header file taken from MinGW's w32api 4.0.3.
Diffstat (limited to 'backends/audiocd/win32/win32-audiocd.cpp')
-rw-r--r-- | backends/audiocd/win32/win32-audiocd.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/audiocd/win32/win32-audiocd.cpp b/backends/audiocd/win32/win32-audiocd.cpp index 8037a179a4..eb9c472ff9 100644 --- a/backends/audiocd/win32/win32-audiocd.cpp +++ b/backends/audiocd/win32/win32-audiocd.cpp @@ -61,9 +61,13 @@ #include "common/str.h" #include "common/timer.h" -#if defined(_MSC_VER) +#if _MSC_VER < 1900 +// WORKAROUND: Older versions of MSVC might not supply DDK headers by default. +// Visual Studio 2015 contains the required headers. We use a compatability +// header from MinGW's w32api for all older versions. +// TODO: Limit this to the Visual Studio versions which actually require this. #include <winioctl.h> -#include <ntddcdrm.h> +#include "msvc/ntddcdrm.h" #elif defined(__MINGW32__) && !defined(__MINGW64__) // Classic MinGW uses non standard paths for DDK headers. #include <ddk/ntddcdrm.h> |