From f9584f7f675fb5e35d34011026422369f8601d96 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 6 Sep 2011 16:27:47 -0500 Subject: [PATCH] add missing prototype in case of mingw --- src/io_win.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/io_win.c b/src/io_win.c index 745526b..22d68af 100644 --- a/src/io_win.c +++ b/src/io_win.c @@ -40,6 +40,12 @@ #include #include +#ifdef __MINGW32__ +/* this prototype is missing from the mingw headers so we must add it + or suffer linker errors. */ +WINHIDSDI BOOL WINAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG); +#endif + int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) { GUID device_id; HANDLE dev;