Solving DDK issues under MSYS2

Discussion of development and patch submission.
Posts: 12
Joined: Sat 18 Feb, 2017 2:09 am

Solving DDK issues under MSYS2

Postby shermanp » Tue 10 Oct, 2017 8:03 am

Hi all.

As some may know, when attempting to compile PCem using MSYS2,

Code: Select all

will not compile due to

Code: Select all


Code: Select all


The issue is that the DDK headers are moved and changed in Mingw-w64 compared to legacy mingw. To solve this, an #ifdef is used to determine the toolchain used. However, the current #ifdef

Code: Select all

is only valid for mingw-w64 64-bit. It is not defined when using mingw-w64 32-bit, and therefore at compile time, it tries (and fails) to use the older headers.

I propose changing the #ifdef (and #ifndef) to use

Code: Select all

, as that is defined for both versions of mingw-w64. This change allows the file to compile in both MSYS2, and legacy mingw.
Posts: 37
Joined: Wed 24 Feb, 2016 7:27 pm

Re: Solving DDK issues under MSYS2

Postby altheos » Mon 27 Nov, 2017 4:21 pm

it fixed compilation using MSYS2. Maybe Sarah will commit this change.

Return to “Development”

Who is online

Users browsing this forum: No registered users and 1 guest