From 0bb15e2df8c84a8df8043bc2d8a7589e7b6ad556 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 6 Dec 2024 03:00:41 +0000 Subject: [PATCH] inputdx.h: make compatible with mingw we need to use the mingw-provided headers, otherwise we'll run into linker errors later on. --- desmume/src/frontend/windows/inputdx.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desmume/src/frontend/windows/inputdx.h b/desmume/src/frontend/windows/inputdx.h index d2a187ac5..12200c972 100644 --- a/desmume/src/frontend/windows/inputdx.h +++ b/desmume/src/frontend/windows/inputdx.h @@ -26,8 +26,15 @@ #include #include #define DIRECTINPUT_VERSION 0x0800 +#ifndef __MINGW32__ #include "directx/dinput.h" #include "directx/XInput.h" +#else +/* use the directx headers mingw ships, microsoft's dont work with gcc */ +#define CINTERFACE +#include +#include +#endif typedef struct {