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 {